diff options
| -rw-r--r-- | evil-commands.el | 6 | ||||
| -rw-r--r-- | evil-maps.el | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/evil-commands.el b/evil-commands.el index ac88186..5e292ba 100644 --- a/evil-commands.el +++ b/evil-commands.el @@ -2241,6 +2241,12 @@ The return value is the yanked text." (interactive) (evil-paste-from-register ?.)) +(defun evil-paste-last-insertion-and-stop-insert () + "Past last insertion and change to normal state." + (interactive) + (evil-paste-last-insertion) + (evil-normal-state)) + (evil-define-command evil-use-register (register) "Use REGISTER for the next command." :keep-visual t diff --git a/evil-maps.el b/evil-maps.el index 7429acd..bfd795a 100644 --- a/evil-maps.el +++ b/evil-maps.el @@ -386,6 +386,7 @@ ("\C-t" . evil-shift-right-line) ("\C-d" . evil-shift-left-line) ("\C-a" . evil-paste-last-insertion) + ("\C-@" . evil-paste-last-insertion-and-stop-insert) ([remap delete-backward-char] . evil-delete-backward-char-and-join) ,(if evil-want-C-w-delete '("\C-w" . evil-delete-backward-word) |
