aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-04-29 10:32:44 -0600
committerCody Hiar <codyfh@gmail.com>2017-04-29 10:32:44 -0600
commitd8645a2121e85406bb2894e3f383e5dbfd6df669 (patch)
tree587b285a1e651ac28da429ff00ee41c23c45f48e
parenteb83a0092b3e2e09b97a3f44a6ae98cf713a2c50 (diff)
If linting is off turn "lint on save" off
-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>