Home > Enterprise >  Error while making symbolic links for nvim
Error while making symbolic links for nvim

Time:01-25

So I was making a symbolic links for nvim so that if i use vim command it opens nvim.

So I used this code

ln -s (which nvim) /usr/local/bin/vim

but when i ran the command it showed this error

zsh: unknown file attribute: h

so plz tell me my mistake and solution for that

CodePudding user response:

You need to put the path to nvim as the first parameter, i.e.

ln -s =nvim /usr/local/bin/vim

In general, =foo expands to the absolute path of the command foo (by using PATH search).

  •  Tags:  
  • Related