From b85082e3b31dc5306c6ee5b8d3ece19773c8a171 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Sun, 7 May 2017 10:24:45 -0600 Subject: Going into syntastic passive mode properly disables linting on open --- plugin/vim-options.vim | 3 +++ 1 file changed, 3 insertions(+) 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 s :call ToggleSyntasticMode() -- cgit v1.2.3