aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-27 16:41:23 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-27 16:41:23 +1200
commit4097539ac5ebd4077bd3aa63c903c1f1e8a7c70c (patch)
treedd7cfa04145471283c2e0ad2b95c647415da678a
parente12868a39d215be0d0b2c05b645022ec44c71512 (diff)
downloaddotfiles-4097539ac5ebd4077bd3aa63c903c1f1e8a7c70c.tar.gz
Silence Vim diff section navigation maps
This is just to prevent the `:call search(...)` command from showing up in the command line when the map is invoked.
-rw-r--r--vim/after/ftplugin/diff.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/after/ftplugin/diff.vim b/vim/after/ftplugin/diff.vim
index 16ed5dee..798c7089 100644
--- a/vim/after/ftplugin/diff.vim
+++ b/vim/after/ftplugin/diff.vim
@@ -9,9 +9,9 @@ if exists('g:no_plugin_maps') || exists('g:no_diff_maps')
endif
" Modify curly braces to navigate by diff block
-nnoremap <buffer> <LocalLeader>[
+nnoremap <buffer> <silent> <LocalLeader>[
\ :call search('\m^@@', 'bW')<CR>
-nnoremap <buffer> <LocalLeader>]
+nnoremap <buffer> <silent> <LocalLeader>]
\ :call search('\m^@@', 'W')<CR>
let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>['
\ . '|nunmap <buffer> <LocalLeader>]'