From d8645a2121e85406bb2894e3f383e5dbfd6df669 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Sat, 29 Apr 2017 10:32:44 -0600 Subject: If linting is off turn "lint on save" off --- plugin/vim-options.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 s :call ToggleSyntasticMode() -- cgit v1.2.3