Kevin Old wrote:
On 6/7/06, Tim Chase <[EMAIL PROTECTED]> wrote:
This would be where I'd start...comparing your old 'viminfo'
setting with your new one.

Thanks Tim.  I've never edited settings for viminfo, but I've attached
my viminfo's for both 6.3 and 7.  There are File marks in the viminfo
7 file, but it's not using them.  Read the stuff in :help viminfo, but
am unclear on what I need to set in .vimrc to get it to use them?

Any help is appreicated,
Kevin

If your 'viminfo' option includes the required setting, then maybe you aren't restoring the cursor at the BufReadPost autocommand. The necessary autocommand is included in the vimrc_example, so if your vimrc includes

   source $VIMRUNTIME/vimrc_example.vim

it should restore the cursor to its last position (unless you have edited so many other files since then that the file has been bumped out of history).

See
   :help 'viminfo'
      with the single quotes

Note also that if the viminfo feature hasn't been compiled-in, it won't work. To check it, use

   :echo has("viminfo")

The reply should be non-zero (normally 1).


HTH,
Tony.

Reply via email to