diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/insert_cancel.txt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/insert_cancel.txt b/doc/insert_cancel.txt index 1d8ce7c..233e627 100644 --- a/doc/insert_cancel.txt +++ b/doc/insert_cancel.txt @@ -2,26 +2,26 @@ 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 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|. REQUIREMENTS *insert_cancel-requirements* -This plugin only loads if 'compatible' is not set. It works best if you -have at least |vim7| with |autocmd|, because it leans on the |CursorMoved| -event. +This plugin only loads if 'compatible' is not set. It works best if you have +at least |vim7| with |autocmd|, because it leans on the |CursorMoved| event. If you don't have |CursorMoved|, the |'[| and |']| marks are used to detect -changes instead. This still works for undoing insert additions, but it won't +changes instead. This still works for undoing insert additions, but it won't restore text that was erased when insert mode was entered with |c| or |s| or their variants, and it doesn't undo new unindented blank lines. MAPPINGS *insert_cancel-mappings* *<Plug>(InsertCancel)* -The single insert mode mapping target is |<Plug>(InsertCancel)|. There is no -default key mapping; you should define one yourself in your |vimrc|. For +The single insert mode mapping target is |<Plug>(InsertCancel)|. There is no +default key mapping; you should define one yourself in your |vimrc|. For example: > imap <C-C> <Plug>(InsertCancel) @@ -29,7 +29,7 @@ example: ISSUES *insert_cancel-issues* 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 +you can't cancel an insert operation while pasting. You might consider this a feature. AUTHOR *insert_cancel-author* |