aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-28 22:57:24 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-28 22:57:24 +1200
commit607c2638b0fa94e8bd4a5db5e7757a060d7db093 (patch)
treebf159c18c082432c644e2ec79d16dbf48ea87fcd
parente8f1153d387782d966b8a07b7b91efe5ddeff42e (diff)
parentbfca13d25c433715a0ffc3d6e687ff91360e9367 (diff)
downloadvim-insert-cancel-607c2638b0fa94e8bd4a5db5e7757a060d7db093.tar.gz
vim-insert-cancel-607c2638b0fa94e8bd4a5db5e7757a060d7db093.zip
Merge branch 'release/v6.0.0'v6.0.0
* release/v6.0.0: Changed my mind again; do fire InsertLeave
-rw-r--r--README.md2
-rw-r--r--VERSION2
-rw-r--r--doc/insert_cancel.txt2
-rw-r--r--plugin/insert_cancel.vim4
4 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index b0e07eb..b78ba00 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@ insert\_cancel.vim
This small plugin provides a mapping in insert mode to cancel the current
insert operation by undoing the last change upon insert exit, if a change to
-the buffer was made during insert mode, without firing `InsertLeave`. This is
+the buffer was made during insert mode, while firing `InsertLeave`. This is
intended for remapping Ctrl-C in insert mode to do something more useful.
License
diff --git a/VERSION b/VERSION
index 0062ac9..09b254e 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5.0.0
+6.0.0
diff --git a/doc/insert_cancel.txt b/doc/insert_cancel.txt
index 5c628be..12a0111 100644
--- a/doc/insert_cancel.txt
+++ b/doc/insert_cancel.txt
@@ -4,7 +4,7 @@ DESCRIPTION *insert_cancel*
This small plugin provides a mapping in insert mode to cancel the current
insert operation by undoing the last change upon insert exit, if a change to
-the buffer was made during insert mode, without firing InsertLeave. This is
+the buffer was made during insert mode, while firing InsertLeave. This is
intended for remapping |i_CTRL-C| to do something more useful.
REQUIREMENTS *insert_cancel-requirements*
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>"