diff --git a/README.md b/README.md index 5da2671..ec85b6a 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Lean & mean status/tabline for vim that's light as air. # Features * Tiny core written with extensibility in mind ([open/closed principle][8]). -* Integrates with a variety of plugins, including: [vim-bufferline][6], [fugitive][4], [unite][9], [ctrlp][10], [minibufexpl][15], [gundo][16], [undotree][17], [nerdtree][18], [tagbar][19], [vim-gitgutter][29], [vim-signify][30], [syntastic][5], [lawrencium][21] and [virtualenv][31]. +* Integrates with a variety of plugins, including: [vim-bufferline][6], [fugitive][4], [unite][9], [ctrlp][10], [minibufexpl][15], [gundo][16], [undotree][17], [nerdtree][18], [tagbar][19], [vim-gitgutter][29], [vim-signify][30], [syntastic][5], [eclim][34], [lawrencium][21] and [virtualenv][31]. * Looks good with regular fonts and provides configuration points so you can use unicode or powerline symbols. * Optimized for speed; it loads in under a millisecond. * Extensive suite of themes for popular colorschemes including [solarized][23] (dark and light), [tomorrow][24] (all variants), [base16][32] (all variants), [molokai][25], [jellybeans][26] and others; have a look at the [screenshots][14] in the wiki. @@ -61,6 +61,15 @@ vim-airline integrates with a variety of plugins out of the box. These extensio #### [syntastic][5] ![image](https://f.cloud.github.com/assets/306502/962864/9824c484-04f7-11e3-9928-da94f8c7da5a.png) +#### [eclim][34] + +*eclim* 's syntax checker extension works well with *syntastic* 's extension. + +* By default, it turned on when *eclim* was installed. +* When you installed *eclim* but want to turn off this extension, add next line in your vimrc: + + let g:airline#extensions#eclim#enabled = 0 + #### hunks ([vim-gitgutter][29] & [vim-signify][30]) ![image](https://f.cloud.github.com/assets/306502/995185/73fc7054-09b9-11e3-9d45-618406c6ed98.png) @@ -196,3 +205,4 @@ MIT License. Copyright (c) 2013 Bailey Ling. [31]: https://github.com/jmcantrell/vim-virtualenv [32]: https://github.com/chriskempson/base16-vim [33]: https://github.com/bling/vim-airline/wiki/Test-Plan +[34]: http://eclim.org diff --git a/autoload/airline/extensions/eclim.vim b/autoload/airline/extensions/eclim.vim index c0b5dbe..99b3f4e 100644 --- a/autoload/airline/extensions/eclim.vim +++ b/autoload/airline/extensions/eclim.vim @@ -11,7 +11,7 @@ function! airline#extensions#eclim#get_warnings() let errorsLine = eclimList[0]['line'] let errorsNumber = len(eclimList) let errors = "[Eclim: line:".string(errorsLine)." (".string(errorsNumber).")]" - if SyntasticStatuslineFlag() == '' + if !exists(':SyntasticStatuslineFlag') || SyntasticStatuslineFlag() == '' return errors.(g:airline_symbols.space) endif endif