From 5cff478a69fdce5ccb86e15914b2e08ff4e606ea Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Tue, 16 Oct 2018 21:33:32 -0700 Subject: [PATCH] Add Vi mode to fish config --- fish/config.fish | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/fish/config.fish b/fish/config.fish index 49c463d..4c1e0da 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -30,6 +30,18 @@ if test -e ~/.config/fish/local.fish source ~/.config/fish/local.fish 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 # https://github.com/wting/autojump