From aee46dd8e9676a45ce80b6117514edaf437cbb95 Mon Sep 17 00:00:00 2001 From: Chu-Siang Lai Date: Sat, 17 Mar 2018 18:38:09 +0800 Subject: [PATCH] [syntastic] Just check on open with GUI, not console --- _vim/plugin-list.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/_vim/plugin-list.vim b/_vim/plugin-list.vim index f8eec9f..9d87758 100644 --- a/_vim/plugin-list.vim +++ b/_vim/plugin-list.vim @@ -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 q :SyntasticToggleMode +nmap q :SyntasticCheck +nmap r :SyntasticReset NeoBundle 'BBCode--Dahn' NeoBundle 'othree/vim-javascript-syntax'