From 9514a993fccd07f6a4a3d8221d0b06dd03bb99e5 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 9 May 2019 17:46:48 +1200 Subject: Switch to two-spacing --- README.md | 6 +++--- doc/insert_cancel.txt | 20 ++++++++++---------- 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* *(InsertCancel)* -The single insert mode mapping target is |(InsertCancel)|. There is no -default key mapping; you should define one yourself in your |vimrc|. For +The single insert mode mapping target is |(InsertCancel)|. There is no +default key mapping; you should define one yourself in your |vimrc|. For example: > imap (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* -- cgit v1.2.3