diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-27 16:41:23 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-27 16:41:23 +1200 |
commit | 4097539ac5ebd4077bd3aa63c903c1f1e8a7c70c (patch) | |
tree | dd7cfa04145471283c2e0ad2b95c647415da678a /vim/after/ftplugin/diff.vim | |
parent | Use local leader keys in Vim diff section nav maps (diff) | |
download | dotfiles-4097539ac5ebd4077bd3aa63c903c1f1e8a7c70c.tar.gz dotfiles-4097539ac5ebd4077bd3aa63c903c1f1e8a7c70c.zip |
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.
Diffstat (limited to 'vim/after/ftplugin/diff.vim')
-rw-r--r-- | vim/after/ftplugin/diff.vim | 4 |
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>]' |