aboutsummaryrefslogtreecommitdiff
path: root/plugin/vim-options.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/vim-options.vim')
-rw-r--r--plugin/vim-options.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim
index 7913faa..df7b9f2 100644
--- a/plugin/vim-options.vim
+++ b/plugin/vim-options.vim
@@ -329,6 +329,7 @@ if !empty(glob($EditorDir.'plugged/syntastic/plugin/syntastic.vim'))
let g:syntastic_php_phpcs_args = "--standard=".$HOME."/PEARish.xml,PSR2,Symfony2"
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 0
+ let g:syntastic_check_on_wq = 1
let g:syntastic_check_on_open = 1
let g:syntastic_aggregate_errors = 1
let g:syntastic_mode_map = { 'mode': 'active' }
@@ -343,8 +344,10 @@ EOF
if l:syntastic_current_mode == 'passive'
SyntasticCheck
let g:syntastic_check_on_wq = 0
+ let g:syntastic_check_on_open = 0
else
let g:syntastic_check_on_wq = 1
+ let g:syntastic_check_on_open = 1
endif
endfunction
nnoremap <leader>s :call ToggleSyntasticMode()<CR>