Evil paste behaviour

2017-07-17 11:51:26

I'm noticing odd behaviour when I select some text with control-space and use p to paste -- in that the paste is done after the cursor character, rather than on the next line. Is that intentional, configurable, or a bug? This is evil from git.

For example, if my buffer is

one

two

three

four

When I copy the first two lines (cursor on 'o', C-space, jj, M-w) and paste with the cursor on 'f' of the last line, then the result is

one

two

three

fone

two

tour

If I use 2yy to copy the lines then the paste works as expected.

My .emacs contains minimal evil configuration, but removing it makes no difference.

(setq evil-cross-lines t

evil-move-beyond-eol t

evil-want-fine-undo t

evil-symbol-word-search t)

(define-key evil-normal-state-map "\C-w" 'evil-delete)

(define-key evil-insert-state-map "\C-w" 'evil-delete)

(define-key evil-visual-state-map "\C-w" 'evil-delete)