Delay an expensive startup cost until needed
This commit is contained in:
parent
96cb6a9556
commit
98b7e0e01b
@ -19,9 +19,12 @@ let g:loaded_syntastic_plugin = 1
|
|||||||
|
|
||||||
let s:running_windows = has("win16") || has("win32") || has("win64")
|
let s:running_windows = has("win16") || has("win32") || has("win64")
|
||||||
|
|
||||||
if !s:running_windows
|
function! s:uname()
|
||||||
|
if !exists('s:uname')
|
||||||
let s:uname = system('uname')
|
let s:uname = system('uname')
|
||||||
endif
|
endif
|
||||||
|
return s:uname
|
||||||
|
endfunction
|
||||||
|
|
||||||
if !exists("g:syntastic_enable_signs")
|
if !exists("g:syntastic_enable_signs")
|
||||||
let g:syntastic_enable_signs = 1
|
let g:syntastic_enable_signs = 1
|
||||||
@ -536,7 +539,7 @@ function! SyntasticMake(options)
|
|||||||
let old_shell = &shell
|
let old_shell = &shell
|
||||||
let old_errorformat = &l:errorformat
|
let old_errorformat = &l:errorformat
|
||||||
|
|
||||||
if !s:running_windows && (s:uname !~ "FreeBSD")
|
if !s:running_windows && s:uname() !~ "FreeBSD"
|
||||||
"this is a hack to stop the screen needing to be ':redraw'n when
|
"this is a hack to stop the screen needing to be ':redraw'n when
|
||||||
"when :lmake is run. Otherwise the screen flickers annoyingly
|
"when :lmake is run. Otherwise the screen flickers annoyingly
|
||||||
let &shellpipe='&>'
|
let &shellpipe='&>'
|
||||||
@ -560,7 +563,7 @@ function! SyntasticMake(options)
|
|||||||
let &shellpipe=old_shellpipe
|
let &shellpipe=old_shellpipe
|
||||||
let &shell=old_shell
|
let &shell=old_shell
|
||||||
|
|
||||||
if !s:running_windows && s:uname =~ "FreeBSD"
|
if !s:running_windows && s:uname() =~ "FreeBSD"
|
||||||
redraw!
|
redraw!
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user