Skip to content

Commit

Permalink
[syntastic] Just check on open with GUI, not console
Browse files Browse the repository at this point in the history
  • Loading branch information
chusiang committed Mar 17, 2018
1 parent 03a9e10 commit aee46dd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions _vim/plugin-list.vim
Original file line number Diff line number Diff line change
Expand Up @@ -423,14 +423,20 @@ let g:syntastic_warning_symbol='⚠'
let g:syntastic_enable_highlighting = 1
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0

if has('gui')
let g:syntastic_check_on_open = 1
else
let g:syntastic_check_on_open = 0
endif

set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

nmap <leader>q :SyntasticToggleMode<CR>
nmap <leader>q :SyntasticCheck<CR>
nmap <leader>r :SyntasticReset<CR>
NeoBundle 'BBCode--Dahn'
NeoBundle 'othree/vim-javascript-syntax'
Expand Down

0 comments on commit aee46dd

Please sign in to comment.