From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Goldman Newsgroups: gmane.emacs.help Subject: Re: some vi equivalents please? Date: Wed, 05 Nov 2008 08:41:29 -0500 Message-ID: <4912ee0b@news.greennet.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225896514 29999 80.91.229.12 (5 Nov 2008 14:48:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2008 14:48:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 05 15:49:37 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KxjhR-0007xY-EB for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2008 15:49:37 +0100 Original-Received: from localhost ([127.0.0.1]:56315 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxjgK-0002HI-EE for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2008 09:48:28 -0500 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-NNTP-Posting-Host: 192.91.197.52 X-Original-NNTP-Posting-Host: 192.91.197.52 Original-X-Trace: 6 Nov 2008 08:15:55 -0500, 192.91.197.52 Original-Lines: 12 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feedme.ziplink.net!news.greennet.net!192.91.197.52 Original-Xref: news.stanford.edu gnu.emacs.help:164132 X-Original-Bytes: 1188 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59471 Archived-At: rustom wrote: > 1. In vi I can delete a line that contains a with :g//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