0

Evil pastes after point; How do I make it paste at point?

123456|789

Current behavior:

1234567sth89

Desired:

123456sth789

3

By default, p is bound to evil-paste-after, which pastes after the cursor. But there's also P (capitalized), bound to evil-paste-before, which pastes before the cursor. So the capitalized P should do what you want. You can also rebind the lower p key to paste before, if you wish:

(define-key evil-normal-state-map "p" 'evil-paste-before)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.