From ba8ab82b30aec980dc4f7070233c1ec1368b0fb3 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 25 Aug 2014 23:47:40 -0400 Subject: [PATCH] Completed disabling syntax checking on :wq --- vim/config/keyboard.vim | 6 +++--- vim/config/plugins.vim | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 5454f09..d0b5a96 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -466,9 +466,9 @@ set pastetoggle= "toggle syntax checking - nnoremap ':if (g:syntastic_check_on_open == 1)let g:syntastic_check_on_open=0let g:syntastic_check_on_wq=0elselet g:syntastic_check_on_open=1let g:syntastic_check_on_wq=1endif:SyntasticToggleMode' - xnoremap ':if (g:syntastic_check_on_open == 1)let g:syntastic_check_on_open=0let g:syntastic_check_on_wq=0elselet g:syntastic_check_on_open=1let g:syntastic_check_on_wq=1endif:SyntasticToggleModegv' - inoremap ':if (g:syntastic_check_on_open == 1)let g:syntastic_check_on_open=0let g:syntastic_check_on_wq=0elselet g:syntastic_check_on_open=1let g:syntastic_check_on_wq=1endif:SyntasticToggleMode' + nnoremap ':if (g:syntastic_check_on_open == 1)let g:syntastic_check_on_open=0elselet g:syntastic_check_on_open=1endif:SyntasticToggleMode' + xnoremap ':if (g:syntastic_check_on_open == 1)let g:syntastic_check_on_open=0elselet g:syntastic_check_on_open=1endif:SyntasticToggleModegv' + inoremap ':if (g:syntastic_check_on_open == 1)let g:syntastic_check_on_open=0elselet g:syntastic_check_on_open=1endif:SyntasticToggleMode' "toggle goyo nnoremap ':Goyo' diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index 01e8159..acf3263 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -151,11 +151,9 @@ if (g:autostartchecker == 1) let g:syntastic_mode_map = {'mode':'active','active_filetypes':[],'passive_filetypes':[]} let g:syntastic_check_on_open=1 - let g:syntastic_check_on_wq=1 else let g:syntastic_mode_map = {'mode':'passive','active_filetypes':[],'passive_filetypes':[]} let g:syntastic_check_on_open=0 - let g:syntastic_check_on_wq=0 endif let g:syntastic_check_on_wq=0