Article View: wwa.support
Article #40Re: VI question
From: David W. Tamkin
Date: Sun, 17 Dec 1995 00:00
Date: Sun, 17 Dec 1995 00:00
39 lines
1985 bytes
1985 bytes
bobzim@wwa.com (Bob Zimmerman) wrote in <4b1d02$nq@kirin.wwa.com>: | a) Whenever I yank to a bookmark (e.g.) I mark | the begining of some text I want to duplicate by | pressing mm in command mode, then move to the | end of that section and do a | | y'm | | to yank it... The cursor always moves to the mm | location :( Since I am duplicating the lines, | I want it to stay right where it was so I can | do the "p" thing :) | | Any ideas how to yank it without the jumping ... Whenever you yank, the cursor will end up at the beginning of the yanked area. If the mark was below the cursor when you issued the yank command, yanking won't move it at all. | ... or an easier "dupe" it way to do it... As Oleg said, you can use `` to go back when that happens, but instead of doing that and then using p to add a copy at the end of the original, just stay where you are and use P to paste in a copy of the default buffer before the original. Either way you end up with two consecutive appearances of the same text, which is what you want. | b) (the only other question :), is how to | repeat the last action, regardless of what it was. | | I know that "n" repeats the last find and ";" repeats | the last semi-colon... Uh, ; repeats the last F, f, T, or t, and , reverses the last F, f, T, or t. N reverses the last search. . (the period) repeats the last *change*. It will not repeat the last movement, for example.
Technical Details
Message-ID:
<4b1vgm$lp8@miso.wwa.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4b1d02$nq@kirin.wwa.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d5fa,135d326921a99a65 X-Google-Attributes: gid10d5fa,public X-Google-Thread: 10065a,135d326921a99a65 X-Google-Attributes: gid10065a,public From: dattier@sashimi.wwa.com (David W. Tamkin) Subject: Re: VI question Date: 1995/12/17 Message-ID: <4b1vgm$lp8@miso.wwa.com> X-Deja-AN: 122103089 references: <4b1d02$nq@kirin.wwa.com> organization: TIPFKAG [World-Wide Access, Chicago, Illinois 60606-2804] newsgroups: wwa.support,chi.internet