Add readline config
parent
041e4545ea
commit
a866c81b4d
|
@ -0,0 +1,25 @@
|
||||||
|
$include /etc/inputrc
|
||||||
|
|
||||||
|
set editing-mode vi
|
||||||
|
set keymap vi
|
||||||
|
set show-mode-in-prompt on
|
||||||
|
set vi-ins-mode-string "\1\e[1;32m\2i:\1\e[0m\2"
|
||||||
|
set vi-cmd-mode-string "\1\e[1;31m\2c?\1\e[0m\2"
|
||||||
|
set show-all-if-ambiguous on
|
||||||
|
set colored-completion-prefix on
|
||||||
|
set colored-stats on
|
||||||
|
set completion-display-width 0
|
||||||
|
|
||||||
|
$if mode=vi
|
||||||
|
set keyseq-timeout 200
|
||||||
|
set keymap vi-command
|
||||||
|
"\e[A": history-search-backward
|
||||||
|
"\e[B": history-search-forward
|
||||||
|
j: history-search-forward
|
||||||
|
k: history-search-backward
|
||||||
|
set keymap vi-insert
|
||||||
|
"jj": vi-movement-mode
|
||||||
|
"\e[A": history-search-backward
|
||||||
|
"\e[B": history-search-forward
|
||||||
|
"\C-l": clear-screen
|
||||||
|
$endif
|
Loading…
Reference in New Issue