aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-08 21:19:16 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-08 21:19:16 +1200
commit70e570a8fe47575e3e0715aca69623f42cf6bce8 (patch)
treeab1c3bea154015984e1cf239c9b42e766b37e425
parentMerge branch 'release/v0.4.0' into develop (diff)
downloadvim-diff-prune-70e570a8fe47575e3e0715aca69623f42cf6bce8.tar.gz
vim-diff-prune-70e570a8fe47575e3e0715aca69623f42cf6bce8.zip
Rename plugin maps with <Plug>(parens)
-rw-r--r--after/ftplugin/diff/prune.vim8
-rw-r--r--doc/diff_prune.txt8
2 files changed, 8 insertions, 8 deletions
diff --git a/after/ftplugin/diff/prune.vim b/after/ftplugin/diff/prune.vim
index 7830cba..185d04f 100644
--- a/after/ftplugin/diff/prune.vim
+++ b/after/ftplugin/diff/prune.vim
@@ -22,14 +22,14 @@ let b:undo_ftplugin = b:undo_ftplugin
" Define normal mode mapping target
nnoremap <buffer> <silent> <unique>
- \ <Plug>DiffPrune
+ \ <Plug>(DiffPrune)
\ :<C-U>set operatorfunc=diff#prune#Prune<CR>g@
let b:undo_ftplugin = b:undo_ftplugin
- \ . '|nunmap <buffer> <Plug>DiffPrune'
+ \ . '|nunmap <buffer> <Plug>(DiffPrune)'
" Define visual mode mapping target
vnoremap <buffer> <silent> <unique>
- \ <Plug>DiffPrune
+ \ <Plug>(DiffPrune)
\ :<C-U>call diff#prune#Prune(visualmode())<CR>
let b:undo_ftplugin = b:undo_ftplugin
- \ . '|vunmap <buffer> <Plug>DiffPrune'
+ \ . '|vunmap <buffer> <Plug>(DiffPrune)'
diff --git a/doc/diff_prune.txt b/doc/diff_prune.txt
index ed1932b..ea7fabb 100644
--- a/doc/diff_prune.txt
+++ b/doc/diff_prune.txt
@@ -19,17 +19,17 @@ This plugin is only available if 'compatible' is not set. It requires Vim 7.0
or newer.
MAPPINGS *diff_prune-mappings*
- *<Plug>DiffPrune*
+ *<Plug>(DiffPrune)*
-A single mapping target name `<Plug>DiffPrune` for normal and visual modes
+A single mapping target name `<Plug>(DiffPrune)` for normal and visual modes
provided. You could put this in your `~/.vimrc` to use `<LocalLeader>p`:
>
augroup vimrc
autocmd!
autocmd FileType diff
- \ nmap <buffer> <LocalLeader>p <Plug>DiffPrune
+ \ nmap <buffer> <LocalLeader>p <Plug>(DiffPrune)
autocmd FileType diff
- \ xmap <buffer> <LocalLeader>p <Plug>DiffPrune
+ \ xmap <buffer> <LocalLeader>p <Plug>(DiffPrune)
augroup END
<
AUTHOR *diff_prune-author*