Skip to content

Instantly share code, notes, and snippets.

@dahu
Created March 19, 2012 07:34
Show Gist options
  • Save dahu/2101008 to your computer and use it in GitHub Desktop.
Save dahu/2101008 to your computer and use it in GitHub Desktop.
Vim - Disable certain plugins if number of lines in file too numerous
" disable the syntastic plugin if editing a file more than 700 lines long
function DisablePlugins()
if line('$') > 700
let g:loaded_syntastic = 1
endif
endfunction
au BufRead * call DisablePlugins()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment