Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Minor cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
lcd047 committed Jul 15, 2015
1 parent c44cb15 commit ffcf625
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions plugin/syntastic.vim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"
"============================================================================

if exists('g:loaded_syntastic_plugin')
if exists('g:loaded_syntastic_plugin') || &compatible
finish
endif
let g:loaded_syntastic_plugin = 1
Expand All @@ -19,11 +19,16 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif

let g:_SYNTASTIC_VERSION = '3.6.0-123'
let g:_SYNTASTIC_VERSION = '3.6.0-124'
lockvar g:_SYNTASTIC_VERSION

" Sanity checks {{{1

if v:version < 700 || (v:version == 700 && !has('patch175'))
call syntastic#log#error('need Vim version 7.175 or later')
finish
endif

for s:feature in [
\ 'autocmd',
\ 'eval',
Expand Down Expand Up @@ -130,7 +135,7 @@ let s:_DEBUG_DUMP_OPTIONS = [
\ 'shelltemp',
\ 'shellxquote'
\ ]
if v:version > 703 || (v:version == 703 && has('patch446'))
if exists('+shellxescape')
call add(s:_DEBUG_DUMP_OPTIONS, 'shellxescape')
endif
lockvar! s:_DEBUG_DUMP_OPTIONS
Expand Down Expand Up @@ -231,12 +236,13 @@ endfunction " }}}2
" Autocommands {{{1

augroup syntastic
autocmd!
autocmd BufReadPost * call s:BufReadPostHook()
autocmd BufWritePost * call s:BufWritePostHook()
autocmd BufEnter * call s:BufEnterHook()
augroup END

if v:version > 703 || (v:version == 703 && has('patch544'))
if exists('##QuitPre')
" QuitPre was added in Vim 7.3.544
augroup syntastic
autocmd QuitPre * call s:QuitPreHook()
Expand Down

0 comments on commit ffcf625

Please sign in to comment.