From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Parker, Matthew" Newsgroups: gmane.emacs.help Subject: RE: some vi equivalents please? Date: Fri, 31 Oct 2008 12:01:02 -0400 Message-ID: <9E067A1AECCB154485D4CF7E4BEF4D8E0AA9C28E@post07.corp.seic.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1225469015 26885 80.91.229.12 (31 Oct 2008 16:03:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2008 16:03:35 +0000 (UTC) To: "rustom" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 31 17:04:36 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 1KvwT9-0005Ks-Fl for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Oct 2008 17:03:27 +0100 Original-Received: from localhost ([127.0.0.1]:58939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KvwS2-0005SK-LK for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Oct 2008 12:02:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KvwRB-00055D-W2 for help-gnu-emacs@gnu.org; Fri, 31 Oct 2008 12:01:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KvwR8-000525-AC for help-gnu-emacs@gnu.org; Fri, 31 Oct 2008 12:01:25 -0400 Original-Received: from [199.232.76.173] (port=34882 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KvwR8-00051y-55 for help-gnu-emacs@gnu.org; Fri, 31 Oct 2008 12:01:22 -0400 Original-Received: from exprod5og107.obsmtp.com ([64.18.0.184]:40201) by monty-python.gnu.org with smtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KvwR7-0007Y3-M0 for help-gnu-emacs@gnu.org; Fri, 31 Oct 2008 12:01:22 -0400 Original-Received: from source ([12.20.48.152]) (using TLSv1) by exprod5ob107.postini.com ([64.18.4.12]) with SMTP; Fri, 31 Oct 2008 09:01:21 PDT Original-Received: from tm.mx2.seic.com ([192.168.0.82]) by ms.mx2.seic.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 31 Oct 2008 12:01:05 -0400 Original-Received: from POST02.corp.seic.com ([10.40.40.212]) by tm.mx2.seic.com with InterScan Messaging Security Suite; Fri, 31 Oct 2008 12:01:04 -0400 Original-Received: from post07.corp.seic.com ([10.40.40.217]) by POST02.corp.seic.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 31 Oct 2008 12:01:04 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: some vi equivalents please? Thread-Index: Ack7byVlfB+xLUjTSziumZRTfUcjjwAAf+NA X-OriginalArrivalTime: 31 Oct 2008 16:01:04.0771 (UTC) FILETIME=[E0EC8530:01C93B71] X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:59299 M-x delete-matching-lines -> delete lines that contain regexp M-x flush-lines -> synonym M-x delete-non-matching-lines -> the reverse M-x keep-lines -> synonym Matthew Parker SEI | 1 Freedom Valley Drive | Oaks, PA 19456 | p: 610-676-1279 | f: 484-676-1279 | www.seic.com > -----Original Message----- > From: help-gnu-emacs-bounces+mparker=3Dseic.com@gnu.org [mailto:help-gnu- > emacs-bounces+mparker=3Dseic.com@gnu.org] On Behalf Of rustom > Sent: Friday, October 31, 2008 11:09 AM > To: help-gnu-emacs@gnu.org > Subject: some vi equivalents please? >=20 > 1. In vi I can delete a line that contains a with > :g//d >=20 > How is this done in emacs? >=20 > 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? >=20 > Thanks