diff --git a/vim_settings/.vim/vimrc b/vim_settings/.vim/vimrc index 70d3420..e64dd79 100644 --- a/vim_settings/.vim/vimrc +++ b/vim_settings/.vim/vimrc @@ -25,9 +25,6 @@ source ~/.vim/vimrcs/.vimrc.file " misc source ~/.vim/vimrcs/.vimrc.misc -" syntastic -source ~/.vim/vimrcs/.vimrc.syntastic - " taglist source ~/.vim/vimrcs/.vimrc.taglist diff --git a/vim_settings/.vim/vimrcs/.vimrc.syntastic b/vim_settings/.vim/vimrcs/.vimrc.syntastic deleted file mode 100644 index bd932d8..0000000 --- a/vim_settings/.vim/vimrcs/.vimrc.syntastic +++ /dev/null @@ -1,12 +0,0 @@ -let g:syntastic_enable_signs=1 -let g:syntastic_auto_loc_list=2 -let g:syntastic_enable_highlighting=1 -let g:syntastic_check_on_open=1 -let g:syntastic_python_checkers=['pylint'] -let g:syntastic_stl_format='[%E{Err: %fe #%e}%B{, }%W{Warn: %fw #%w}]' -let g:syntastic_loc_list_height=5 -set statusline+=%#warningmsg# -set statusline+=%{SyntasticStatuslineFlag()} - -"show only errors -"let g:syntastic_quiet_warnings=1 diff --git a/vim_settings/patches/syntastic.vim.p0 b/vim_settings/patches/syntastic.vim.p0 deleted file mode 100644 index 1296d0c..0000000 --- a/vim_settings/patches/syntastic.vim.p0 +++ /dev/null @@ -1,37 +0,0 @@ -*** /home/t-atsumi/.vim/bundle/syntastic/plugin/syntastic.vim 2013-10-17 12:39:15.381929012 +0900 ---- /home/t-atsumi/vim.bk/bundle/syntastic/plugin/syntastic.vim 2013-10-16 18:46:20.400955362 +0900 -*************** -*** 170,175 **** ---- 170,178 ---- - endif - - call s:notifiers.refresh(loclist) -+ -+ """ add by me """ -+ call s:SynstasticEchoErrors() - endfunction - - "clear the loc list for the buffer -*************** -*** 465,467 **** ---- 468,487 ---- - endfunction - - " vim: set et sts=4 sw=4: -+ -+ """"" add by me """""" -+ " show loclist when error has detected (ignore warning). -+ function! s:SynstasticEchoErrors() -+ if g:syntastic_auto_loc_list != 1 -+ let loclist = g:SyntasticLoclist.current() -+ if loclist.hasErrorsOrWarningsToDisplay() -+ let errors = loclist.errors() -+ let num_errors = len(errors) -+ if (num_errors > 0) -+ call s:ShowLocList() -+ else -+ lclose -+ endif -+ endif -+ endif -+ endfunction