From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rustom Newsgroups: gmane.emacs.help Subject: some vi equivalents please? Date: Fri, 31 Oct 2008 08:08:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225468009 22484 80.91.229.12 (31 Oct 2008 15:46:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2008 15:46:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 31 16:47:51 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 1Kvw8w-00035f-Gh for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Oct 2008 16:42:34 +0100 Original-Received: from localhost ([127.0.0.1]:58242 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kvw7p-0005Gy-Ea for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Oct 2008 11:41:25 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!s1g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: 59.95.24.53 Original-X-Trace: posting.google.com 1225465722 17322 127.0.0.1 (31 Oct 2008 15:08:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 31 Oct 2008 15:08:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s1g2000prg.googlegroups.com; posting-host=59.95.24.53; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008052912 Firefox/3.0,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:163953 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:59295 Archived-At: 1. In vi I can delete a line that contains a with :g//d How is this done in emacs? 2. match-variables: If I want to remove everything after the second : (in a file that has 3 fields separated with two :'s) I do :s/\(.*\):\(.*\):.*/\1 \2 How do I do that in emacs? Thanks