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

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

some vi equivalents please?


From: rustom
Subject: some vi equivalents please?
Date: Fri, 31 Oct 2008 08:08:42 -0700 (PDT)
User-agent: G2/1.0

1. In vi I can delete a line that contains a <pat> with
:g/<pat>/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


reply via email to

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