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

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

Re: some vi equivalents please?


From: Ken Goldman
Subject: Re: some vi equivalents please?
Date: Wed, 05 Nov 2008 08:41:29 -0500
User-agent: Thunderbird 2.0.0.17 (Windows/20080914)

rustom wrote:
1. In vi I can delete a line that contains a <pat> with :g/<pat>/d

Others have posted the best way do do this. However, rather than searching for infrequently used commands, I typically just define a keyboard macro and replay it.

In this case, the macro would be:

- search for the pattern
- go to the beginning of the line
- kill the line


reply via email to

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