I use a kind of bookmark. These lines are from my vimrc file:
nmap \s <Esc>:let cp=getpos(".")<C-CR>:echo cp<C-CR><Esc> "Saves the
cursor's position
nmap \g <Esc>:call setpos('.',cp)<C-CR><Esc> "Set's the cursor back
to the saved location
You must save the position before scrolling. I hope that his will do
the trick for you.
Regards,
Filipe Teixeira
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---