From 43a0785118ba8c8804a28459ec16ec7ecf168533 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 25 Oct 2019 13:58:27 +0200 Subject: [PATCH] [ADD][VIM] Disable better-whitespace with fugitive The inline diff view in fugitive contains spaces, they shouldn't be highlighted to avoid distracting me. --- vim/.vim/after/ftplugin/fugitive.vim | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 vim/.vim/after/ftplugin/fugitive.vim diff --git a/vim/.vim/after/ftplugin/fugitive.vim b/vim/.vim/after/ftplugin/fugitive.vim new file mode 100644 index 0000000..73f936e --- /dev/null +++ b/vim/.vim/after/ftplugin/fugitive.vim @@ -0,0 +1,3 @@ +" Don't highlight trailing whitespace in fugitive windows +let b:better_whitespace_enabled=0 +let b:undo_ftplugin.='|unlet b:better_whitespace_enabled'