diff options
Diffstat (limited to 'doc/insert_cancel.txt')
-rw-r--r-- | doc/insert_cancel.txt | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/doc/insert_cancel.txt b/doc/insert_cancel.txt index 9e0deda..5c628be 100644 --- a/doc/insert_cancel.txt +++ b/doc/insert_cancel.txt @@ -1,11 +1,11 @@ -*insert_cancel.txt* For Vim version 7.0 Last change: 2019 May 25 +*insert_cancel.txt* For Vim version 7.0 Last change: 2019 May 28 DESCRIPTION *insert_cancel* -This plugin provides a mapping target to cancel an insert operation. It -leaves insert mode normally, firing |InsertLeave|, and then runs |:undo| if -the buffer was changed by the insert. This is intended as a remap of -|i_CTRL-C|. +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 +intended for remapping |i_CTRL-C| to do something more useful. REQUIREMENTS *insert_cancel-requirements* @@ -20,11 +20,9 @@ example: > imap <C-C> <Plug>(InsertCancel) < -ISSUES *insert_cancel-issues* +LIMITATIONS *insert_cancel-limitations* -It doesn't work at all in paste mode, in the same way as any other mapping, so -you can't cancel an insert operation while pasting. You might consider this a -feature. +It doesn't work in paste mode, much the same as any other mapping. AUTHOR *insert_cancel-author* |