"yank" means "yank into (invisible) buffer", sort of like control-c in
GUI editors.  The "y" command is followed by an indicator as to the
scope of what is to be "yanked".  yy is a shortcut meaning to yank the
current line.  The stuff yanked can be either line-by-line or
character-by-character.  tx (up to but not including character x) is
character by character, as is fx or /x<cr>.  LIne-by-line movement
commands like j and k are line oriented.  By default, the yank goes to
an anonymous buffer, but you can prefix the command with a buffer name
(like emacs registers), introduced by the double quote character:
"ay4j yanks 5 lines (the current line and the four following lines (j
goes down a line)) into the buffer name "a".

Copy from invisible buffer into the text is done with lower case p
(put) to put the text after the current line/current character or
upper case P to put it before the current line/current character.
That's the essential difference between line-by-line or character-by-
character yanks: whether the contents gets put/pasted at a line
boundary or at the current character position.  You copy from a named
buffer by prefixing the put with <double quote><buffer name>, e.g.,
"ap copies from the buffer named a either after the current line or
the current character.

    - Stephen

(who prefers emacs to vi, but who has 20+ years expertise in vi due to
its ubiquity and because emacs is only reliably available when I'm in
control of the machine)

On May 20, 9:21 am, "Edward K. Ream" <[EMAIL PROTECTED]> wrote:
> On Mon, May 19, 2008 at 7:20 PM, TL <[EMAIL PROTECTED]> wrote:
>
> > You're welcome.  Thanks for creating the architecture to support the
> > work.
>
> > Concerning the yank command, I've tried using the it but it pastes
> > text instead of yanking it.  Can you check if you see the same thing?
>
> I suppose this means I don't understand what yank does.  I thought yank was
> pretty much like paste.  Can you explain, or point to an explanation?
>
> Edward
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to