In version 6.3 (and as far as I can remember in Vim versions) it would
return my cursor to the line I was at when I saved a file the next
time I opened that file.

It now returns me to the beginning of the file in Vim 7.

I looked at :help restore-position, but that doesn't do it by default.

The weird thing is that before I never had to set anything special for
it to do it.  It even worked if I didn't have a .vimrc.

I suspect somewhere along the line the 'viminfo' setting changed subtly. Perhaps in your stock install, perhaps inadvertantly. Particularly, you'd want to look at the "f" portion of it:

from ":help 'viminfo'"
        f       Whether file marks need to be stored.  If
                zero, file marks ('0 to '9, 'A to 'Z) are
                not stored.  When not present or when
                non-zero, they are all stored.  '0 is used
                for the current cursor position (when exiting
                or when doing ":wviminfo").


This would be where I'd start...comparing your old 'viminfo' setting with your new one.

-tim


Reply via email to