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.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim
index 15e873f..7913faa 100644
--- a/plugin/vim-options.vim
+++ b/plugin/vim-options.vim
@@ -330,7 +330,6 @@ if !empty(glob($EditorDir.'plugged/syntastic/plugin/syntastic.vim'))
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 1
- let g:syntastic_check_on_wq = 1
let g:syntastic_aggregate_errors = 1
let g:syntastic_mode_map = { 'mode': 'active' }
function! ToggleSyntasticMode()
@@ -343,6 +342,9 @@ EOF
SyntasticToggleMode
if l:syntastic_current_mode == 'passive'
SyntasticCheck
+ let g:syntastic_check_on_wq = 0
+ else
+ let g:syntastic_check_on_wq = 1
endif
endfunction
nnoremap <leader>s :call ToggleSyntasticMode()<CR>