27 lines
650 B
Plaintext
27 lines
650 B
Plaintext
#"\e[5~": history-search-backward
|
|
#"\e[6~": history-search-forward
|
|
|
|
set editing-mode vi
|
|
set show-mode-in-prompt on
|
|
|
|
# SET THE MODE STRING AND CURSOR TO INDICATE THE VIM MODE
|
|
# FOR THE NUMBER AFTER `\e[`:
|
|
# 0: blinking block
|
|
# 1: blinking block (default)
|
|
# 2: steady block
|
|
# 3: blinking underline
|
|
# 4: steady underline
|
|
# 5: blinking bar (xterm)
|
|
# 6: steady bar (xterm)
|
|
set vi-ins-mode-string (ins)\1\e[5 q\2
|
|
set vi-cmd-mode-string (cmd)\1\e[1 q\2
|
|
#
|
|
$if mode=vi
|
|
set keymap vi-command
|
|
"k": history-substring-search-backward
|
|
"j": history-substring-search-forward
|
|
#
|
|
set keymap vi-insert
|
|
"\C-l": clear-screen
|
|
$endif
|