Yakov Lerner wrote:
On 10/6/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
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

-u option forces 'compatible' on. Thus I an pretty sure -i is redundant
if added to -u NONE. -n NONE forces 'compatible' and thus empty
'viminfo'.

Yakov


It forces 'compatible' on, unless -N is also used. Now go back to the example given (by Bill McCarthy on 5-Oct-2006 at 15:59:34 -0500) and you'll see that it was "gvim -u NONE -i NONE -N". In this case "-i NONE" is not redundant, because -N forces 'nocompatible':

- If the "-N" command line argument is given, 'nocompatible' will be used,
  even when no vimrc file exists.

(*starting.txt*  For Vim version 7.0.  Last change: 2006 Sep 01, lines 920-921).


I just tried it to check: started Vim with -u NONE -N but without any -i argument. Immediately after startup:

:set vi?
  viminfo='20,<50,s10,h

which is the 'nocompatible' default for Unix, and implies a viminfo file at ~/.viminfo. And the viminfo is read too, as shown by the many registers listed by ":reg".

Adding "-i NONE" doesn't change the 'viminfo' option but it does prevent the file from being read, as can be seen from the fact that ":reg" lists no other registers than * + :


Best regards,
Tony.

Reply via email to