From 29037575e3d4c85b360fdfda4f8a7830446a52f0 Mon Sep 17 00:00:00 2001 From: Nate Kane Date: Thu, 7 Mar 2013 08:59:56 +1000 Subject: [PATCH] Disable the plugin when in a diff. Closes #48. --- autoload/indent_guides.vim | 2 +- doc/indent_guides.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/indent_guides.vim b/autoload/indent_guides.vim index cbba32c..7804b5f 100644 --- a/autoload/indent_guides.vim +++ b/autoload/indent_guides.vim @@ -33,7 +33,7 @@ endfunction function! indent_guides#enable() let g:indent_guides_autocmds_enabled = 1 - if indent_guides#exclude_filetype() + if &diff || indent_guides#exclude_filetype() call indent_guides#clear_matches() return end diff --git a/doc/indent_guides.txt b/doc/indent_guides.txt index cd4c2d8..db5ffe4 100644 --- a/doc/indent_guides.txt +++ b/doc/indent_guides.txt @@ -239,6 +239,7 @@ Bug reports, feedback, suggestions etc are welcomed. * Added way to override the default mapping (thanks xuhdev). * Added option g:|indent_guides_exclude_filetypes| to specify a list of filetypes to disable the plugin for. + * Disable the plugin when in a diff. 1.6~ * Added option g:|indent_guides_space_guides| to control whether spaces are