Created
January 9, 2020 08:45
-
-
Save beli-sk/c25f5bac0ae38a932e0d2286df881fcd to your computer and use it in GitHub Desktop.
Bash (or any readline prompt) vi-mode with tweaks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set editing-mode vi | |
set show-mode-in-prompt on | |
set vi-ins-mode-string "+" | |
set vi-cmd-mode-string ":" | |
$if mode=vi | |
set keymap vi-command | |
# these are for vi-command mode | |
Control-l: clear-screen | |
set keymap vi-insert | |
# these are for vi-insert mode | |
Control-l: clear-screen | |
$endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment