diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-28 22:56:58 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-28 22:56:58 +1200 |
commit | a3fe8ad383b8ef37d96221f4c88915391b2aff11 (patch) | |
tree | 914f35c7990a7481eedac20acc4693bc93edcd1f /plugin/insert_cancel.vim | |
parent | Merge branch 'release/v5.0.0' into develop (diff) | |
download | vim-insert-cancel-a3fe8ad383b8ef37d96221f4c88915391b2aff11.tar.gz vim-insert-cancel-a3fe8ad383b8ef37d96221f4c88915391b2aff11.zip |
Changed my mind again; do fire InsertLeave
Diffstat (limited to 'plugin/insert_cancel.vim')
-rw-r--r-- | plugin/insert_cancel.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/insert_cancel.vim b/plugin/insert_cancel.vim index f0d8443..540031b 100644 --- a/plugin/insert_cancel.vim +++ b/plugin/insert_cancel.vim @@ -1,7 +1,7 @@ " " insert_cancel.vim: Insert mode mapping to cancel the current insert " operation by undoing the last change upon insert exit, if we made a change, -" without firing InsertLeave. This is intended for remapping Ctrl-C in insert +" while firing InsertLeave. This is intended for remapping Ctrl-C in insert " mode to do something more useful. " " Author: Tom Ryder <tom@sanctum.geek.nz> @@ -21,4 +21,4 @@ augroup END " Undo any changes if they exceed the cached number on insert map key press inoremap <expr> <Plug>(InsertCancel) - \ changenr() > b:insert_cancel_changenr ? "\<C-C>u" : "\<C-C>" + \ changenr() > b:insert_cancel_changenr ? "\<Esc>u" : "\<Esc>" |