From ef295a7cdb8f91652bd4f926480a359a5ed9bce6 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Tue, 21 Apr 2015 22:22:27 -0400 Subject: add syntastic to vim --- vimrc | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 8051677..c80f83a 100644 --- a/vimrc +++ b/vimrc @@ -15,9 +15,11 @@ Bundle 'altercation/vim-colors-solarized' Bundle 'vim-scripts/bufexplorer.zip' Bundle 'kien/ctrlp.vim' Bundle 'Lokaltog/vim-powerline' -Bundle 'airblade/vim-gitgutter' Bundle 'pangloss/vim-javascript' Bundle 'jnwhiteh/vim-golang' +Bundle 'chase/vim-ansible-yaml' +Bundle 'scrooloose/syntastic' +Bundle 'airblade/vim-gitgutter' " " behavior @@ -128,6 +130,24 @@ let g:ctrlp_map ='a' nnoremap vl :let g:solarized_visibility="low" | colo solarized nnoremap vh :let g:solarized_visibility="high" | colo solarized +" syntastic +let g:syntastic_check_on_open = 1 +let g:syntastic_python_flake8_args = "--ignore=E501" +function! ToggleSyntasticErrors() + if !exists('w:syn_errors_enabled') + let w:syn_errors_enabled = 0 + endif + if w:syn_errors_enabled + lclose + let w:syn_errors_enabled = 0 + else + Errors + let w:syn_errors_enabled = 1 + endif +endfunction +nnoremap r :call ToggleSyntasticErrors() + + " " visual " -- cgit v1.2.3