Monday, May 10, 2010

Re: restore cursor position after search/replace

Sweet, I'll check it out!

On May 9, 3:46 pm, Andy Wokula <anw...@yahoo.de> wrote:
> Am 09.05.2010 21:37, schrieb surge:
>
> > Hello all,
>
> > Let's say I'm in some column of some line in a file. When I do a
> > replace with ":s/something/something" and then do an ESC, the cursor
> > jumps to the beginning of the line. Even if undo with an "u". Is there
> > a way for it to stay in the column before the replace?
>
> > Thanks!
> >   Sergius
>
> try the attached script providing the  :KeepView  command.
>
> --
> Andy
>
> --
> 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, visithttp://www.vim.org/maillist.php
>
>  keepview.vim
> < 1KViewDownload

--
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

No comments: