My current &viminfo
contents are:
:set viminfo?
viminfo=!,'100,<50,s10,h,n/home/ravi/.local/share/vim/viminfo
I want to have a single vimrc
which works with both vim
and neovim
.
What lines can I add to my vimrc
to set use:
- In
vim
:/home/ravi/.local/share/vim/viminfo
- In
neovim
: the default
,n<name>
depending on whether I'm invim
orneovim
.E576
is&viminfo
2) Why and 3) What to do about it while keepingviminfo
set as desired when usingvim
.E576
and answer it myself?