|
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
[Prev in Thread] | Current Thread | [Next in Thread] |