2009/2/23 Filipe <[email protected]>:
>
> 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.

Just out of interest, how is this different to using marks?

ma
`a

:help mark
:help `a

Al

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to