Saturday, February 5, 2011

Re: Delete lines matching hits

On Sat, Feb 05, 2011 at 10:14:19AM -0800, Eduard wrote:
> ...
> to copy all matching lines, whole lines, containing hits.
>
> I wonder if there's a way to do the same but instead of copying them
> to the clipboard, delete them.

:g/pattern/d

See :help :g

--
Javier Rojas

GPG Key ID: 0x24E00D68

No comments: