🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3968

Re: A delete questions in vim

#3968
From: R.Balasubramanian
Date: Sun, 23 Feb 1997 00:00
20 lines
1425 bytes

>>>>> "Kai" == Kai Grossjohann
>>>>> <grossjohann@ls6.informatik.uni-dortmund.de> writes:

>>>>> Ilya  writes:
    Ilya> will delete to and including "A" character on a line in the
    Ilya> command mode. How do I do the same thing globally - to every
    Ilya> line in the file? Is there a simpler solution in emacs or
    Ilya> with sed?

    Kai> Emacs:
    Kai> M-x query-replace-regexp RET ^[^A]*A RET RET
    Kai> Then, hit "!" to skip the yes/no questions.

vim:
ESC: %s/^[^A]*A//RET
Same thing really ... :-)
Hope this helps,
Mani.
Technical Details
Message-ID: <7vohdb3lug.fsf@milli.ee.iitm.ernet.in>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <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: 103b8b,99ce9c1deb2ced06
X-Google-Attributes: gid103b8b,public
X-Google-Thread: 102b9a,99ce9c1deb2ced06
X-Google-Attributes: gid102b9a,public
From: R.Balasubramanian <ee_95152@_ee.iitm.ernet.in>
Subject: Re: A delete questions in vim
Date: 1997/02/23
Message-ID: <7vohdb3lug.fsf@milli.ee.iitm.ernet.in>
X-Deja-AN: 220824681
Distribution: inet
Sender: ee95152@milli.ee.iitm.ernet.in
References: <5e6c42$ou7@newslink.runet.edu>
Followup-To: comp.unix.questions
Organization: 2/4 B.Tech, Electrical Engineering, IIT Madras.
Reply-To: ee_95152@_ee.iitm.ernet.in
Newsgroups: comp.editors,comp.emacs,gnu.emacs.help,comp.unix.questions