From 321ecaca67426410316db7db05e6e33809fe1e63 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Fri, 19 Oct 2012 15:09:38 -0500 Subject: Add powerline --- vim/autoload/Powerline/Functions/syntastic.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 vim/autoload/Powerline/Functions/syntastic.vim (limited to 'vim/autoload/Powerline/Functions/syntastic.vim') diff --git a/vim/autoload/Powerline/Functions/syntastic.vim b/vim/autoload/Powerline/Functions/syntastic.vim new file mode 100644 index 0000000..e2c04fa --- /dev/null +++ b/vim/autoload/Powerline/Functions/syntastic.vim @@ -0,0 +1,16 @@ +function! Powerline#Functions#syntastic#GetErrors(line_symbol) " {{{ + if ! exists('g:syntastic_stl_format') + " Syntastic hasn't been loaded yet + return '' + endif + + " Temporarily change syntastic output format + let old_stl_format = g:syntastic_stl_format + let g:syntastic_stl_format = '╱╱╱%E{ ERRORS (%e) '. a:line_symbol .' %fe }%W{ WARNINGS (%w) '. a:line_symbol .' %fw }╱╱╱' + + let ret = SyntasticStatuslineFlag() + + let g:syntastic_stl_format = old_stl_format + + return ret +endfunction " }}} -- cgit