diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-23 00:40:44 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-23 00:42:49 +1200 |
commit | 182b9687b435553419b769be60324dd41fda3bd8 (patch) | |
tree | 485b1a84e4dc7597a54cb288e16600bb25d967ed /doc | |
parent | Get normal mode map specifically for cancel (diff) | |
download | vim-paste-insert-182b9687b435553419b769be60324dd41fda3bd8.tar.gz vim-paste-insert-182b9687b435553419b769be60324dd41fda3bd8.zip |
More sophisticated map caching
This is surprisingly hard.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/paste_insert.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/paste_insert.txt b/doc/paste_insert.txt index ff17437..7286c15 100644 --- a/doc/paste_insert.txt +++ b/doc/paste_insert.txt @@ -32,6 +32,13 @@ Set `g:paste_insert_cancel` to a |List| of the keys you want to cancel the pending paste in normal mode. This defaults to `['<C-C>', '<Esc>']`, for CTRL-C and Escape. +The plugin will overwrite any existing normal mode maps for these keys during +the normal mode phase of the operation, but will try to restore them back +afterwards. This works well in versions of Vim 7.3.032 or newer, but before +that patch, recursive maps and flags like <expr> or <silent> are broken, +although <buffer> should still work. Either pick keys that you don't map, or +even better--upgrade your Vim! + AUTHOR *paste_insert-author* Written and maintained by Tom Ryder <tom@sanctum.geek.nz>. |