diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-12 12:54:17 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-12 12:54:17 +1200 |
commit | bdf4c1ad5878e4bc4c7066ded1f62f2f2c38ffc9 (patch) | |
tree | 9d9324ae75bc1ad09c87df242675fc0475ef9672 | |
parent | Merge branch 'release/v2.0.0' (diff) | |
parent | Bump VERSION (diff) | |
download | vim-insert-cancel-bdf4c1ad5878e4bc4c7066ded1f62f2f2c38ffc9.tar.gz vim-insert-cancel-bdf4c1ad5878e4bc4c7066ded1f62f2f2c38ffc9.zip |
Merge branch 'release/v3.0.0'v3.0.0
* release/v3.0.0:
Bump VERSION
Parenthesise mapping
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | doc/insert_cancel.txt | 6 | ||||
-rw-r--r-- | plugin/insert_cancel.vim | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -1 +1 @@ -2.0.0 +3.0.0 diff --git a/doc/insert_cancel.txt b/doc/insert_cancel.txt index d6efbfa..b7888b3 100644 --- a/doc/insert_cancel.txt +++ b/doc/insert_cancel.txt @@ -23,12 +23,12 @@ still rather better than just the intuitive mapping: < MAPPINGS *insert_cancel-mappings* - *<Plug>InsertCancel* -The single mapping target provided is |<Plug>InsertCancel|, mappable in any + *<Plug>(InsertCancel)* +The single mapping target provided is |<Plug>(InsertCancel)|, mappable in any mode. There is no default key mapping to the target; you should define this yourself in your |vimrc|. For example: > - imap <C-C> <Plug>InsertCancel + imap <C-C> <Plug>(InsertCancel) AUTHOR *insert_cancel-author* diff --git a/plugin/insert_cancel.vim b/plugin/insert_cancel.vim index 51216d0..6bd92aa 100644 --- a/plugin/insert_cancel.vim +++ b/plugin/insert_cancel.vim @@ -68,5 +68,5 @@ if has('autocmd') && v:version >= 700 endif " Mapping that exits insert mode normally and checks for a change to undo -inoremap <silent> <Plug>InsertCancel +inoremap <silent> <Plug>(InsertCancel) \ <Esc>:<C-U>call <SID>Cancel()<CR> |