I have a new idea, I want the gVim can save the cursor's position when the "current line" changed automatically while I am using the mouse to scroll .
So what shall I write in the vimrc? On 2月23日, 下午7时25分, Filipe <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
