dotfiles/hm/inputrc

27 lines
712 B
Plaintext
Raw Permalink Normal View History

2016-05-01 15:02:53 +02:00
$if mode=vi
2019-04-14 19:41:33 +02:00
# these are for vi-command mode
2017-06-27 08:14:12 +02:00
set keymap vi-command
"k": history-search-backward
"j": history-search-forward
2019-04-14 19:41:33 +02:00
"\e[A": history-search-backward
"\e[B": history-search-forward
Control-l: clear-screen
# these are for vi-insert mode
2017-06-27 08:14:12 +02:00
set keymap vi-insert
2019-04-14 19:41:33 +02:00
"jk": vi-movement-mode
"\e[A": history-search-backward
"\e[B": history-search-forward
Control-l: clear-screen
# Switch between thin cursor and thicc block depending on vi mode
$if term=linux
set vi-ins-mode-string \1\e[?0c\2
set vi-cmd-mode-string \1\e[?8c\2
$else
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2
$endif
2016-05-01 15:02:53 +02:00
$endif