diff options
author | Matt Singleton <matt@xcolour.net> | 2015-04-21 22:22:27 -0400 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2015-04-21 22:22:27 -0400 |
commit | ef295a7cdb8f91652bd4f926480a359a5ed9bce6 (patch) | |
tree | 1d62c258ead75676e694d350f9d6f00584d7c0fb /vimrc | |
parent | 98ce4a42c8e47abd40191b054255e8fffc69713c (diff) |
add syntastic to vim
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -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 ='<leader>a' nnoremap <leader>vl :let g:solarized_visibility="low" | colo solarized<Enter> nnoremap <leader>vh :let g:solarized_visibility="high" | colo solarized<Enter> +" 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 <leader>r :call ToggleSyntasticErrors()<Enter> + + " " visual " |