.inputrc (513B)
1 $include /etc/inputrc 2 set editing-mode vi 3 4 # vi settings 5 $if mode=vi 6 7 #set show-mode-in-prompt on 8 #set vi-ins-mode-string "\1\e[6 q\2" 9 #set vi-cmd-mode-string "\1\e[2 q\2" 10 "jk": vi-movement-mode 11 12 set keymap vi-command 13 Control-l: clear-screen 14 Control-a: beginning-of-line 15 Control-p: previous-history 16 Control-n: next-history 17 18 set keymap vi-insert 19 Control-l: clear-screen 20 Control-a: beginning-of-line 21 Control-p: previous-history 22 Control-n: next-history 23 $endif