Peter Hodge wrote:
[...]
I wouldn't think the -i option is necessary, because 'viminfo' is empty by
default anyway. [...]
The 'viminfo' option is not empty by default, except in 'compatible' mode (see
":help 'viminfo'"):
'compatible' default:
viminfo=
MS-DOS, Windows, OS/2 'nocompatible' default:
viminfo='20,<50,s10,h,rA:,rB:
Amiga 'nocompatible' default:
viminfo='20,<50,s10,h,rdf0:,rdf1:rdf2:
'nocompatible' default on other platforms:
viminfo='20,<50,s10,h
All of these 'nocompatible' defaults implicitly reference a viminfo file named
~/_viminfo (on Dos/Windows), s:.viminfo (on the Amiga) or ~/.viminfo (on other
systems including OS/2) -- unless of course the +viminfo feature was not
compiled-in. "-i NONE" explicitly prevents reading or writing any viminfo
file, regardless of any other settings (such as 'viminfo') or commands (such
as ":rviminfo" or ":wviminfo").
Best regards,
Tony.