From 89a2b67f2427d961bb2f0de771a0290d85e379f9 Mon Sep 17 00:00:00 2001 From: xero Date: Mon, 5 May 2014 15:09:26 -0400 Subject: add vim configs -- yes i have joined the cult of vim --- .../autoload/airline/extensions/syntastic.vim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim (limited to '.vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim') diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim new file mode 100644 index 0000000..f7179af --- /dev/null +++ b/.vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim @@ -0,0 +1,19 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !exists(':SyntasticCheck') + finish +endif + +function! airline#extensions#syntastic#get_warnings() + let errors = SyntasticStatuslineFlag() + if strlen(errors) > 0 + return errors.(g:airline_symbols.space) + endif + return '' +endfunction + +function! airline#extensions#syntastic#init(ext) + call airline#parts#define_function('syntastic', 'airline#extensions#syntastic#get_warnings') +endfunction + -- cgit v1.2.1