scrooloose/syntastic — Issue #125: Disable syntastic when using diff mode (vimdiff)
Author: ashikase
Created: 2011-12-15 10:22:22+00:00
State: open

Below is a patch that prevents syntastic from interfering with diff mode (vimdiff) (which I personally use for 'git diff').

As I mentioned in a previous issue, I have little experience with vimscript, so I doubt that this is the best/proper way to implement this.

(The below code is based on git commit: d14b53e903...)

```vim
if getwinvar(0, '&diff')
finish
endif

if exists("g:loaded_syntastic_plugin")
finish
endif
let g:loaded_syntastic_plugin = 1
```