Add readline and editline config files

Enable vi mode in readline and editline configs.
This commit is contained in:
2018-08-01 21:19:18 +01:00
committed by Benie
parent 4f08d9ee4b
commit 78004d8067
4 changed files with 31 additions and 0 deletions

13
inputrc Normal file
View File

@@ -0,0 +1,13 @@
# Enable vi mode
set editing-mode vi
# Normal mode mappings
set keymap vi-command
"gg": beginning-of-history
"G": end-of-history
# Insert mode mappings
set keymap vi-insert
"\C-[": vi-movement-mode
"\C-p": history-search-backward
"\C-n": history-search-forward