Skip to main content
edited tags
Link
Drew
  • 80.9k
  • 10
  • 125
  • 265
Source Link
user2567544
  • 341
  • 1
  • 11

How can I prevent pasting after org-copy-visible leaving cursor at end of text?

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?