2018-01-21 18:29:48 -07:00
|
|
|
$include /etc/inputrc
|
|
|
|
set editing-mode vi
|
|
|
|
$if mode=vi
|
|
|
|
|
2019-02-02 07:28:34 -05:00
|
|
|
set show-mode-in-prompt on
|
|
|
|
set vi-ins-mode-string \1\e[6 q\2
|
|
|
|
set vi-cmd-mode-string \1\e[2 q\2
|
|
|
|
|
2018-01-21 18:29:48 -07:00
|
|
|
set keymap vi-command
|
|
|
|
# these are for vi-command mode
|
|
|
|
Control-l: clear-screen
|
2018-11-10 18:18:07 -05:00
|
|
|
Control-a: beginning-of-line
|
2018-01-21 18:29:48 -07:00
|
|
|
|
|
|
|
set keymap vi-insert
|
|
|
|
# these are for vi-insert mode
|
|
|
|
Control-l: clear-screen
|
2018-11-10 18:18:07 -05:00
|
|
|
Control-a: beginning-of-line
|
|
|
|
|
2018-01-21 18:29:48 -07:00
|
|
|
$endif
|