>-----Original Message-----
>From: news [mailto:
[hidden email]] On Behalf Of Alexei Alexandrov
>Sent: Wednesday, May 25, 2005 11:09 AM
>To:
[hidden email]
>Subject: y{motion} command question
>
>Hi All!
>
>Why y{motion} command always moves to the beginning of yanked
>block after yanking? For example, move to the line 3, press
>ma, move to the line 12, press y'a. The cursor moves to the
>line #3. Is there a way to get rid of this movement?
>
>--
>Alexei Alexandrov
Why would you? You've *told* it to move to 'a ['a is the {motion}].
I think what you want is: ma:.,12yy
[The ma can be omitted unless you really do want the mark there.]
Alternatively, `` will always get you back where you started the yank
from.
And lastly, there was a thread awhile back about this (or similar).
IIRC, if you want to use visual mode and always be positioned at the
"end" which is closest to the end-of-buffer, I believe someone made a
function for this.
-Keith