Friday, December 21, 2012

Re: g command on visual selection

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

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