Article View: comp.editors
Article #3971Re: A delete questions in vim
From: Tad McClellan
Date: Sun, 16 Feb 1997 00:00
Date: Sun, 16 Feb 1997 00:00
22 lines
1280 bytes
1280 bytes
Ilya (ibelooze@runet.edu) wrote:
: dfA
: will delete to and including "A" character on a line in the command
: mode. How do I do the same thing globally - to every line in the file? Is
: there a simpler solution in emacs or with sed?
:%s/^[^A]*A//
pretty much the same with sed:
sed -e 's/^[^A]*A//' filename
--
Tad McClellan SGML Consulting
Tag And Document Consulting Perl programming
tadmc@flash.net
Technical Details
Message-ID:
<1328e5.1j2.ln@localhost>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<5e6c42$ou7@newslink.runet.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,99ce9c1deb2ced06 X-Google-Attributes: gidf8c9b,public X-Google-Thread: 107393,99ce9c1deb2ced06 X-Google-Attributes: gid107393,public X-Google-Thread: 102b9a,99ce9c1deb2ced06 X-Google-Attributes: gid102b9a,public X-Google-Thread: 103b8b,99ce9c1deb2ced06 X-Google-Attributes: gid103b8b,public From: tadmc@flash.net (Tad McClellan) Subject: Re: A delete questions in vim Date: 1997/02/16 Message-ID: <1328e5.1j2.ln@localhost> X-Deja-AN: 219255418 Distribution: inet References: <5e6c42$ou7@newslink.runet.edu> Followup-To: comp.editors,comp.emacs,gnu.emacs.help,comp.unix.questions Organization: Flashnet Communications, http://www.flash.net Newsgroups: comp.editors,comp.emacs,gnu.emacs.help,comp.unix.questions