blob: 12a0111446b9cf0abb01f118069ebf1773fbc729 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
*insert_cancel.txt* For Vim version 7.0 Last change: 2019 May 28
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, while firing InsertLeave. This is
intended for remapping |i_CTRL-C| to do something more useful.
REQUIREMENTS *insert_cancel-requirements*
This plugin only loads if 'compatible' is not set.
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
example:
>
imap <C-C> <Plug>(InsertCancel)
<
LIMITATIONS *insert_cancel-limitations*
It doesn't work in paste mode, much the same as any other mapping.
AUTHOR *insert_cancel-author*
Written and maintained by Tom Ryder <tom@sanctum.geek.nz>.
LICENSE *insert_cancel-license*
Licensed for distribution under the same terms as Vim itself (see |license|).
vim:tw=78:ts=8:ft=help:norl:
|