Hi Kevin,

On 6/7/06, Kevin Old <[EMAIL PROTECTED]> wrote:
>
> > 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.
>
>
> Check out tip http://vim.sourceforge.net/tips/tip.php?tip_id=80 --
> perhaps that'll help.
>
>
>

Hi Charles,

Thanks for this, but I still don't understand.

I've set my viminfo in .vimrc to:

viminfo='20,"50


Setting the 'viminfo' option with the above value configures Vim to
save the file bookmarks in the viminfo file. You still need to define
the autocmd to use this saved file mark and jump to it.


and it doesn't take me back to the line.  This is exactly how it was
set agains Vim 6.3.


In Vim 6.3, either you sourced the vimrc_example.vim file or the
system vimrc file in your system was defining the autocmd.


I've read all the docs, but still for some weird reason, don't get why
it's not doing what I want it to.


You can add the autocmd described under ":help last-position-jump"
to your .vimrc file.

- Yegappan

Reply via email to