Add Vi mode to fish config

This commit is contained in:
2018-10-16 21:33:32 -07:00
parent e940ce999f
commit 5cff478a69

View File

@@ -30,6 +30,18 @@ if test -e ~/.config/fish/local.fish
source ~/.config/fish/local.fish source ~/.config/fish/local.fish
end end
# =======
# Vi Mode
# =======
function hybrid_bindings --description "Vi-style bindings that inherit emacs-style bindings in all modes"
for mode in default insert visual
fish_default_key_bindings -M $mode
end
fish_vi_key_bindings --no-erase
end
set -g fish_key_bindings hybrid_bindings
# ======== # ========
# Autojump # Autojump
# https://github.com/wting/autojump # https://github.com/wting/autojump