Vi-mode for fish is merged into the master branch but still not released (will be released in 2.2.0), so you need to install it from
.config/fish/config.fish and add
Done, you are good to go. When you want to go back to Normal mode, hit
Open new shells in Insert mode
If you want to be in insert mode when opening a new shell, also add
Define custom keybindings
Let’s say that you want to be able to go back to Normal mode by hitting
jk (I love that keybinding, by the way).
In order to do that (or to define any custom keybinding), you can do the following:
Now go back to your
config.fish and replace
That’s it. Enjoy your vi-mode!