如何在鱼壳中使用 vi 模式?

我见过 Vi-mode 实现的鱼壳,但我不知道如何使用它。网上有没有介绍基本功能的教程,比如如何切换模式?

47278 次浏览

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.

I am using fish 2.2.0. The following worked for me:

Edit $HOME/.config/fish/functions/fish_user_key_bindings.fish

function fish_user_key_bindings
fish_vi_key_bindings
end

via this