Sunday, May 9, 2010

restore cursor position after search/replace

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

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