set editing-mode vi
set keymap vi
-$if mode=vi
- # Prompt will be prefixed with a `+` while in insert mode and a `:` when in command mode
- set show-mode-in-prompt on
- set keymap vi-command
- "gg": beginning-of-history
- "G": end-of-history
- "k": history-search-backward
- "j": history-search-forward
-
- set keymap vi-insert
- "\e":
- "jk": vi-movement-mode
- "\C-l": clear-screen
- "\C-w": backward-kill-word
- "\C-k": history-search-backward
- "\C-j": history-search-forward
-$endif
+set show-mode-in-prompt on
+set vi-ins-mode-string +
+set vi-cmd-mode-string -
+set keymap vi-command
+"gg": beginning-of-history
+"G": end-of-history
+"k": history-search-backward
+"j": history-search-forward
+
+set keymap vi-insert
+"\e":
+"\C-f": vi-movement-mode
+"jk": vi-movement-mode
+"\C-w": backward-kill-word
$if Bash
# do history expansion when space entered