Friday, December 21, 2012

Re: g command on visual selection

2012/12/21 Tim Chase <vim@tim.thechases.com>
On 12/21/12 12:24, Asis Hallab wrote:
> Dear Vimmers,
>
> is there a way to restrict a
> g/my_regex/d
> command to a range?
>
> I tried
> '<,'>norm g/min/d
> but that did not do the trick.

Just specify the range:

  :'<,'>g/my_regex/d

D'Oh!

Sometimes things are much simpler than one thinks..

Thank you very much and again:
Merry Christmas!
 

-tim


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