In evil-mode, if I use 3yy
to copy three lines, then move somewhere else in my file and do P
(evil-paste-before
), the three lines are pasted before the line with the cursor, and the cursor is left at the top of the pasted text.
If however I copy a section of text using org-copy-visible
and paste that using P
, the cursor ends up at the bottom of the pasted text.
I can get the desired result (cursor left at start of text) in the latter case if I subsequently do an undo / redo but that is too hacky even for me.
How can I paste following a call to org-copy-visible
and leave the cursor at the start of the pasted text?
C-x C-x
(which runs the functionexchange-point-and-mark
) or its evil equivalent, after the paste.C-x C-x
will activate the region incidentally, you can useC-u C-SPC
to pop the mark. Or instead, use emacs' built-inC-y
(yank), when addingC-u
, it paste text after point. dunno whether evil provides this functionality or not.