diff options
Diffstat (limited to 'doc/diff_prune.txt')
-rw-r--r-- | doc/diff_prune.txt | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/doc/diff_prune.txt b/doc/diff_prune.txt index ed1932b..f708d73 100644 --- a/doc/diff_prune.txt +++ b/doc/diff_prune.txt @@ -19,18 +19,20 @@ 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 -provided. You could put this in your `~/.vimrc` to use `<LocalLeader>p`: +A single mapping target name `<Plug>(DiffPrune)` for normal and visual modes +provided. There is no default key mapping. You could put this in +`after/ftplugin/diff.vim` to use `<LocalLeader>p`, with `<LocalLeader>pp` to +prune the current line: > - augroup vimrc - autocmd! - autocmd FileType diff - \ nmap <buffer> <LocalLeader>p <Plug>DiffPrune - autocmd FileType diff - \ xmap <buffer> <LocalLeader>p <Plug>DiffPrune - augroup END + nmap <buffer> <LocalLeader>p <Plug>(DiffPrune) + xmap <buffer> <LocalLeader>p <Plug>(DiffPrune) + nmap <buffer> <LocalLeader>pp <Plug>(DiffPrune)_ + let b:undo_ftplugin = b:undo_ftplugin + \ . '|nunmap <buffer> <LocalLeader>p' + \ . '|xunmap <buffer> <LocalLeader>p' + \ . '|nunmap <buffer> <LocalLeader>pp' < AUTHOR *diff_prune-author* |