As far as I can tell I don't set viminfo
anywhere, yet it is set.
:verbose set viminfo?
prints
viminfo='100,<50,s10,h,rA:,rB:
Last set from ~/vimfiles/vimrc
But ~/vimfiles/vimrc
doesn't set it.
Even if I let ~/vimfiles/vimrc
set it to an arbitrary value, viminfo
will still be set to '100,<50,s10,h,rA:,rB:
.
Why is that and how can I set/unset viminfo
?
I had the same problem too. It turn out that the viminfo option is overwritten by the nocompatible flag. Since it overwrite other option too, it is better to place "set nocompatible" at very start of your vimrc file. This solved my issue with viminfo configuration.