aboutsummaryrefslogtreecommitdiff
path: root/plugin/vim-options.vim
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-05-07 10:24:45 -0600
committerCody Hiar <codyfh@gmail.com>2017-05-07 10:24:45 -0600
commitb85082e3b31dc5306c6ee5b8d3ece19773c8a171 (patch)
tree3b9a447dff451c4c7eed016c5f75bdc34d29dea4 /plugin/vim-options.vim
parentd8645a2121e85406bb2894e3f383e5dbfd6df669 (diff)
Going into syntastic passive mode properly disables linting on open
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>