On Thu, Oct 17, 2013 at 8:48 AM, shawn wilson <ag4ve.us@gmail.com> wrote:
My problem is that I often select a portion of code and do multiple
:%s/foo/bar/g (or /gc - whatever) after, the code selection disappears
and I need to select that area again if I want to replace something
else. I can remember line numbers or put a mark at the end. Is there a
way to save the selected area or a better way to do this?
Just type gv after the command finishes, and the visual selection will be re-selected.
HTH,
David
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment