Created
March 19, 2012 07:34
-
-
Save dahu/2101008 to your computer and use it in GitHub Desktop.
Vim - Disable certain plugins if number of lines in file too numerous
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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