Article View: comp.editors
Article #3398Re: vi help
From: Don Malpass
Date: Tue, 20 Dec 1988 15:44
Date: Tue, 20 Dec 1988 15:44
21 lines
1610 bytes
1610 bytes
In article <707@bnlux0.bnl.gov> como@bnlux0.bnl.gov (Andrew Como) writes:
>
> Can anyone out there tell me if there is a way
>to delete a region as opposed to deleting by line numbers
For me the easiest way is to "mark" the top or bottom line, which is
done for example by entering "ma" to mark the line with marker 'a';
then move to the other line that bounds the region and enter "d`a"
(that's a LEFT single quote in front of the a ) which tells vi to delete
everything to marker 'a'. You're allowed 26 markers (a through z,
naturally), and markers are really handy. If you simply want to return
to the line you've previously marked with a "mz", simply type `z and
you'll be there. As a special case, typing `` (TWO left single quotes)
will take you back to the line IMplicitly marked as the "last line you
touched", which often takes you to something you want to return to but
didn't mark explicitly. All this stuff is very handy for cut and paste
operations.
--
Don Malpass [malpass@LL-vlsi.arpa], [malpass@gandalf.ll.mit.edu]
I've been watching Massachusetts politicians for so long that
I'm starting to feel like a proctologist.
Technical Details
Message-ID:
<239@vlsi.ll.mit.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!ll-xn!vlsi!malpassReferences:
<707@bnlux0.bnl.gov>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!ll-xn!vlsi!malpass From: malpass@vlsi.ll.mit.edu (Don Malpass) Newsgroups: comp.editors Subject: Re: vi help Keywords: vi help Message-ID: <239@vlsi.ll.mit.edu> Date: 20 Dec 88 15:44:13 GMT References: <707@bnlux0.bnl.gov> Reply-To: malpass@ll-vlsi.arpa.UUCP (Don Malpass) Organization: MIT Lincoln Laboratory, Lexington MA Lines: 21