aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-09 17:46:48 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-09 17:46:48 +1200
commit9514a993fccd07f6a4a3d8221d0b06dd03bb99e5 (patch)
tree3ed2ee01c8766ff21c4f46aa0a30a9cedb038a03
parentMerge branch 'release/v3.2.0' into develop (diff)
downloadvim-insert-cancel-9514a993fccd07f6a4a3d8221d0b06dd03bb99e5.tar.gz
vim-insert-cancel-9514a993fccd07f6a4a3d8221d0b06dd03bb99e5.zip
Switch to two-spacing
-rw-r--r--README.md6
-rw-r--r--doc/insert_cancel.txt20
2 files changed, 13 insertions, 13 deletions
diff --git a/README.md b/README.md
index 0bfb346..4efa5dd 100644
--- a/README.md
+++ b/README.md
@@ -1,15 +1,15 @@
insert\_cancel.vim
==================
-This plugin provides a mapping target to cancel an insert operation. It leaves
+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 Ctrl-C in insert
+was changed by the insert. This is intended as a remap of Ctrl-C in insert
mode.
License
-------
-Copyright (c) [Tom Ryder][1]. Distributed under the same terms as Vim itself.
+Copyright (c) [Tom Ryder][1]. Distributed under the same terms as Vim itself.
See `:help license`.
[1]: https://sanctum.geek.nz/
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*