[rescue] Re:EMACS

rescue at sunhelp.org rescue at sunhelp.org
Wed Jun 27 19:04:11 CDT 2001


mrbill at mrbill.net writes:

>On Wed, Jun 27, 2001 at 05:57:00PM -0400, Kurt Mosiejczuk wrote:
>> Um, nobody has jumped on this one yet, but this is actually VERY easy
>> in vi.  When you cut and paste in vi, you actually use an unnamed cut
>> buffer.  If you precede your Y,yy,D,dd or what have you with the
>> sequence "a then the cut/copy will be placed into cut buffer a.  There
>> are 26 of them, a through z, and they persist between files unlike
>> the default buffer. (When I say between files, they only persist as
>> long as you are in one execution of vi, you can't vi foo, cut, quit
>> and then vi bar and paste).

>*blink*

>I just wrote a chapter on VI for a Solaris 8 certification study
>book, and I didnt even know this.

The cool vi trick I didn't know about for a long time was "[n], ie:

"3p

Gives access to a cut buffer history.

-- david fischer -- dave at cca.org -- www.cca.org -- Cthulhu told me to. --



More information about the rescue mailing list