From a6d5979b0847a8629861c8252d1e93c2b9a00297 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sun, 29 Jul 2012 22:09:06 -0700 Subject: [PATCH] Don't run the plugin when in diff mode --- autoload/youcompleteme.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index 457d7921..ad1eecf0 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -27,6 +27,11 @@ let s:completion_start_column = 0 let s:omnifunc_mode = 0 function! youcompleteme#Enable() + " When vim is in diff mode, don't run + if &diff + return + endif + " If the user set the current filetype as a filetype that YCM should ignore, " then we don't do anything if get( g:ycm_filetypes_to_ignore, &filetype, 0 )