From bc4cffbd281a2a63951c3ea166506065e9eb71b6 Mon Sep 17 00:00:00 2001 From: Joe Lencioni Date: Mon, 20 Feb 2017 10:00:58 -0800 Subject: [PATCH] Vim: remove Syntastic plugin I'd like to try out Ale, a Vim plugin for syntax checking that works asynchronously. It has been a good run with Syntastic, and perhaps I'll return some day once it gets async support. https://github.com/vim-syntastic/syntastic/issues/699 --- .gitmodules | 3 --- .vim/bundle/syntastic | 1 - .vim/plugin/statusline.vim | 5 ----- .vim/plugin/syntastic.vim | 46 -------------------------------------- 4 files changed, 55 deletions(-) delete mode 160000 .vim/bundle/syntastic delete mode 100644 .vim/plugin/syntastic.vim diff --git a/.gitmodules b/.gitmodules index 78e5f79..a458f5e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -38,9 +38,6 @@ [submodule ".vim/bundle/vim-multiple-cursors"] path = .vim/bundle/vim-multiple-cursors url = https://github.com/terryma/vim-multiple-cursors.git -[submodule ".vim/bundle/syntastic"] - path = .vim/bundle/syntastic - url = https://github.com/scrooloose/syntastic.git [submodule ".vim/bundle/vim-vinegar"] path = .vim/bundle/vim-vinegar url = https://github.com/tpope/vim-vinegar.git diff --git a/.vim/bundle/syntastic b/.vim/bundle/syntastic deleted file mode 160000 index 675f67e..0000000 --- a/.vim/bundle/syntastic +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 675f67eea29308537438eb49b3b28a444c1e4689 diff --git a/.vim/plugin/statusline.vim b/.vim/plugin/statusline.vim index 8be3cfa..109ccb7 100644 --- a/.vim/plugin/statusline.vim +++ b/.vim/plugin/statusline.vim @@ -21,11 +21,6 @@ if has('statusline') set statusline+=%= " split point for left and right groups - set statusline+=%#Error# " switch to Error highlight group - set statusline+=%{SyntasticStatuslineFlag()} " configured by syntastic_stl_format - set statusline+=%* " reset highlight group - - set statusline+=\ " space set statusline+=%{statusline#file_size()} " File size set statusline+=\ " space set statusline+=%1* " switch to User1 highlight group (italics) diff --git a/.vim/plugin/syntastic.vim b/.vim/plugin/syntastic.vim deleted file mode 100644 index c1bb79d..0000000 --- a/.vim/plugin/syntastic.vim +++ /dev/null @@ -1,46 +0,0 @@ -scriptencoding utf-8 - -" Always add any detected errors into the location list -let g:syntastic_always_populate_loc_list = 1 - -" Don't auto-open it when errors/warnings are detected, but auto-close when no -" more errors/warnings are detected. -let g:syntastic_auto_loc_list = 2 - -" Highlight syntax errors where possible -let g:syntastic_enable_highlighting = 1 - -" Show this many errors/warnings at a time in the location list -let g:syntastic_loc_list_height = 5 - -" Don't run checkers when saving and quitting--only on saving -let g:syntastic_check_on_wq = 0 - -let g:syntastic_error_symbol = '✖' -let g:syntastic_warning_symbol = '⚠' -let g:syntastic_style_error_symbol = '⚠' -let g:syntastic_style_warning_symbol = '⚠' - -let g:syntastic_haml_checkers = ['haml_lint'] -let g:syntastic_javascript_checkers = ['eslint'] -let s:eslint_path = system('PATH=$(npm bin):$PATH && which eslint') -let g:syntastic_javascript_eslint_exec = substitute(s:eslint_path, '^\n*\s*\(.\{-}\)\n*\s*$', '\1', '') -let g:syntastic_json_checkers = ['jsonlint'] -let g:syntastic_python_checkers = ['python', 'pep8'] -let g:syntastic_ruby_checkers = ['rubocop'] -let g:syntastic_scss_checkers = ['scss_lint'] -let g:syntastic_vim_checkers = ['vint'] - -" %E{...} - show only if there are errors -" %e - number of errors -" %fe - line number of first error -let g:syntastic_stl_format = '%E{%e ✖ :%fe}' - -" Disable Syntastic when Ferret is writing files for speed. -if has('autocmd') - augroup LencioniFerretWrite - autocmd! - autocmd User FerretWillWrite call SyntasticToggleMode() - autocmd User FerretDidWrite call SyntasticToggleMode() - augroup END -endif