diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-10-31 16:48:05 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-10-31 16:48:05 +0100 |
commit | caf58bd17270246ca5479cf3d287fa51e06d1e62 (patch) | |
tree | 8284a1dd07ab99e5c4eef32d252f0855699a3cfb /dotfiles | |
parent | 02b5c6122ee1fee4e655fc6790c7cd0c7be9dc7d (diff) |
inputrc: add custom bindings
Diffstat (limited to 'dotfiles')
-rw-r--r-- | dotfiles/inputrc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dotfiles/inputrc b/dotfiles/inputrc index 8003476..d88e4ef 100644 --- a/dotfiles/inputrc +++ b/dotfiles/inputrc @@ -7,3 +7,16 @@ set editing-mode vi set show-mode-in-prompt on set vi-ins-mode-string \1\e[35m\2(I)\1\e[0m\2 set vi-cmd-mode-string \1\e[33m\2(C)\1\e[0m\2 + +# insert-mode maps +set keymap vi-insert + +# Alt-/ completes filenames as in emacs mode +"\e/": complete-filename + +# command-mode maps +set keymap vi-command +"\e[2~": vi-insertion-mode + +# start in insert mode +set keymap vi-insert |