aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2015-04-21 22:22:27 -0400
committerMatt Singleton <matt@xcolour.net>2015-04-21 22:22:27 -0400
commitef295a7cdb8f91652bd4f926480a359a5ed9bce6 (patch)
tree1d62c258ead75676e694d350f9d6f00584d7c0fb /vimrc
parent98ce4a42c8e47abd40191b054255e8fffc69713c (diff)
add syntastic to vim
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc22
1 files changed, 21 insertions, 1 deletions
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 ='<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
"