diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-12 12:52:37 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-12 12:52:37 +1200 |
commit | 786eff7a65a5947d980f4994d8534d3af5132d5f (patch) | |
tree | 1385832046929199cbcf906a90747e73aa977d0c | |
parent | Merge branch 'release/v2.0.0' into develop (diff) | |
download | vim-insert-cancel-786eff7a65a5947d980f4994d8534d3af5132d5f.tar.gz vim-insert-cancel-786eff7a65a5947d980f4994d8534d3af5132d5f.zip |
Parenthesise mapping
-rw-r--r-- | doc/insert_cancel.txt | 6 | ||||
-rw-r--r-- | plugin/insert_cancel.vim | 2 |
2 files changed, 4 insertions, 4 deletions
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> |