help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs equivalent of the ":g" command in vi


From: C K Kashyap
Subject: Re: Emacs equivalent of the ":g" command in vi
Date: Fri, 22 Jul 2011 15:32:10 +0530

> which could be as simple as in vi/vim.)
I think he want to delete lines matching a regexp, so C-k is not what he
wants here.

`query-replace-regexp' can be used with a regexp like this:

^.*\(your_regexp\).*$

and you replace with nothing (empty prompt).

--

replace-regexp is indeed closer to what I am looking for. However, I'd like the result to not leave blank lines.

Regards,
Kashyap 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]