🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3973

Re: A delete questions in vim

#3973
From: Kai Grossjohann
Date: Mon, 17 Feb 1997 00:00
18 lines
1481 bytes
>>>>> 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?

Emacs:

M-x query-replace-regexp RET ^[^A]*A RET RET

Then, hit "!" to skrip the yes/no questions.

kai
-- 
The arms should be held in a natural and unaffected way and never
be conspicuous. -- Revised Technique of Latin American Dancing
Technical Details
Message-ID: <vaflo8nbt8s.fsf@ls6.informatik.uni-dortmund.de>
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: 102b9a,99ce9c1deb2ced06
X-Google-Attributes: gid102b9a,public
X-Google-Thread: 103b8b,99ce9c1deb2ced06
X-Google-Attributes: gid103b8b,public
X-Google-Thread: 107393,99ce9c1deb2ced06
X-Google-Attributes: gid107393,public
From: Kai Grossjohann <grossjohann@ls6.informatik.uni-dortmund.de>
Subject: Re: A delete questions in vim
Date: 1997/02/17
Message-ID: <vaflo8nbt8s.fsf@ls6.informatik.uni-dortmund.de>
X-Deja-AN: 219356529
Distribution: inet
Sender: grossjoh@naunet
References: <5e6c42$ou7@newslink.runet.edu>
To: ibelooze@runet.edu (Ilya)
Content-Type: text/plain; charset=US-ASCII
Organization: University of Dortmund, Germany
Mime-Version: 1.0 (generated by tm-edit 7.100)
Reply-To: Kai Grossjohann <grossjohann@ls6.informatik.uni-dortmund.de>
Newsgroups: comp.editors,comp.emacs,gnu.emacs.help,comp.unix.questions