gv FTW!! I use this all the time.
On Thu, Oct 17, 2013 at 9:00 AM, David Fishburn <[email protected]>wrote: > > > > On Thu, Oct 17, 2013 at 8:48 AM, shawn wilson <[email protected]> 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 [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
