voidrice/.config/shell/inputrc

20 lines
372 B
Text
Raw Normal View History

$include /etc/inputrc
set editing-mode vi
$if mode=vi
2019-02-02 12:28:34 +00: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
set keymap vi-command
# these are for vi-command mode
Control-l: clear-screen
2018-11-10 23:18:07 +00:00
Control-a: beginning-of-line
set keymap vi-insert
# these are for vi-insert mode
Control-l: clear-screen
2018-11-10 23:18:07 +00:00
Control-a: beginning-of-line
$endif