From 4097539ac5ebd4077bd3aa63c903c1f1e8a7c70c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 27 Aug 2018 16:41:23 +1200 Subject: 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. --- vim/after/ftplugin/diff.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vim/after') 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 [ +nnoremap [ \ :call search('\m^@@', 'bW') -nnoremap ] +nnoremap ] \ :call search('\m^@@', 'W') let b:undo_ftplugin .= '|nunmap [' \ . '|nunmap ]' -- cgit v1.2.3