Srinivas Rao. M wrote:
Hi,
When i upgraded my vim from vim6.2 to vim7.0, i am finding that the
feature viminfo is not working. (Viminfo remembers last position in the
file when we reopen file). I had set the viminfo option in my .vimrc
file as.
set viminfo='1000,f1,\"500
Do i have to add any special options for vim7 ?.
[...]
See
:help viminfo
:help 'viminfo'
You may also need to set up an autocommand (which is normally set up by
the vimrc_example.vim if your vimrc sources it) to move the cursor to
the remembered position when opening a file. The autocommand is set up
as follows:
augroup vimrcEx
au BufRead * if line("'\"") > 0 && line("'\"") <= line("$") | exe
normal g`\" | endif
augroup END
It is at lines 67 to 71 of the distributed vimrc_example.vim for Vim 7
(by Bram Moolenaar, last change 2002 Sep 19).
Best regards,
Tony.