aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/diff.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-27 16:40:09 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-27 16:40:09 +1200
commite12868a39d215be0d0b2c05b645022ec44c71512 (patch)
tree09e0e57af9752365c4c5896a6adfd1e1bc580d07 /vim/after/ftplugin/diff.vim
parentUse search() in Vim diff section navigation maps (diff)
downloaddotfiles-e12868a39d215be0d0b2c05b645022ec44c71512.tar.gz
dotfiles-e12868a39d215be0d0b2c05b645022ec44c71512.zip
Use local leader keys in Vim diff section nav maps
Diffstat (limited to 'vim/after/ftplugin/diff.vim')
-rw-r--r--vim/after/ftplugin/diff.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/after/ftplugin/diff.vim b/vim/after/ftplugin/diff.vim
index 31403cc3..16ed5dee 100644
--- a/vim/after/ftplugin/diff.vim
+++ b/vim/after/ftplugin/diff.vim
@@ -9,12 +9,12 @@ if exists('g:no_plugin_maps') || exists('g:no_diff_maps')
endif
" Modify curly braces to navigate by diff block
-nnoremap <buffer> {
+nnoremap <buffer> <LocalLeader>[
\ :call search('\m^@@', 'bW')<CR>
-nnoremap <buffer> {
+nnoremap <buffer> <LocalLeader>]
\ :call search('\m^@@', 'W')<CR>
-let b:undo_ftplugin .= '|nunmap <buffer> {'
- \ . '|nunmap <buffer> }'
+let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>['
+ \ . '|nunmap <buffer> <LocalLeader>]'
" Set mappings
nmap <buffer> <LocalLeader>p