Search code examples
vimvifish

How to use vi mode in fish shell?


I saw vi-mode implementation for fish shell, but I have no clue how to use it. Is there any tutorial available online describing basic functionality, e.g. how to switch modes?


Solution

  • In fish 2.3.0 and later:

    • Run fish_vi_key_bindings to start vi mode
    • Run fish_default_key_bindings to go back to default mode

    If you want to make it the default, add the fish_vi_key_bindings command to ~/.config/fish/config.fish.