Add fzf and readline vi mode

This commit is contained in:
Nathan McCarty 2024-11-29 04:31:49 +00:00
parent 6b66695908
commit b35efa261a

View file

@ -42,4 +42,27 @@
style = "header,rule,snip,changes";
};
};
programs.readline = {
enable = true;
extraConfig = ''
set editing-mode vi
set show-all-if-ambiguous on
set editing-mode vi
set keymap vi-command
# these are for vi-command mode
"\e[A": history-search-backward
"\e[B": history-search-forward
j: history-search-forward
k: history-search-backward
set keymap vi-insert
# these are for vi-insert mode
"\e[A": history-search-backward
"\e[B": history-search-forward
'';
};
programs.fzf.enable = true;
}