Monday, March 22, 2010

file positioning not working

Hi,

File positioning not working despite of having the required setting
in .vimrc

if has("autocmd")
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
endif
set viminfo='10,\"100,:20,%,n~/.viminfo

But if I have any file open and open another one with :tabnew <file>
then it works.

I checked .viminfo file as well, which has lots of entries.

What can be wrong here.

Jagpreet

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments: