2

I use Ubuntu with the zsh shell, and when I try to open vim with the vi or vim command it opens neovim instead. I tried using the original bash shell, but it still didn't work. I tried sudo update-alternatives --config vi but it didn't work either.

karel
  • 122,695
  • 134
  • 305
  • 337
  • 2
    When you installed neovim, it may have inserted itself as the preferred alternate in the alternatives list - run the command update-alternatives --display vim to check – steeldriver Mar 26 '23 at 12:21

1 Answers1

1

Try by using update-alternatives that let you choose which command to run among the alternatives:

sudo update-alternatives --config vi
Marco
  • 11