From 33427ddd983cd26ed9e8b4202deb1d83c51a5af0 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 26 Jul 2018 10:30:01 +1200 Subject: Add issues to docs --- doc/insert_cancel.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/insert_cancel.txt b/doc/insert_cancel.txt index 4adb82c..1d8ce7c 100644 --- a/doc/insert_cancel.txt +++ b/doc/insert_cancel.txt @@ -26,6 +26,12 @@ example: > imap (InsertCancel) < +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 +feature. + AUTHOR *insert_cancel-author* Written and maintained by Tom Ryder . -- cgit v1.2.3 From d10451c066decb07581e6cbc4d11021d0d856fe1 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 13 Feb 2019 13:00:54 +1300 Subject: Redraw the screen after cancelling insert There's an apparent bug in recent patches of Vim (after 8.1) that causes 'showmode' display to remain on the screen after an insert operation is cancelled using this plugin. A full `redraw!` fixes it. I'll see if I can figure out what's causing it in Vim itself too, hopefully before an 8.2 release. --- plugin/insert_cancel.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/insert_cancel.vim b/plugin/insert_cancel.vim index 1ec0f91..18bd0ac 100644 --- a/plugin/insert_cancel.vim +++ b/plugin/insert_cancel.vim @@ -48,6 +48,9 @@ function! s:Cancel() silent undo endif + " Redraw the screen to avoid bug with vestigial 'showmode' display + redraw! + endfunction " Set up the hooks described for the functions above, if Vim is new enough to -- cgit v1.2.3 From 31b60fa6b34eec00f77f3bea3413386774f14ce4 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 13 Feb 2019 13:02:43 +1300 Subject: Bump VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 94ff29c..944880f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.1 +3.2.0 -- cgit v1.2.3