Vim airline branch not showing

user1494994 picture user1494994 · Feb 26, 2015 · Viewed 11.9k times · Source

I've installed bling/vim-airline hoping I could have that cool branch name in my status bar.

I followed the instructions on airline's repo and installed tpope/vim-fugitive. But after downloading, installing, modifying and restarting vim, I just couldn't get the branch on the status bar. Instead I've got this:

I'm suspecting something was wrong with my .vimrc file?

Here is the part related to airline:

set ttimeoutlen=50
let g:airline_theme = 'powerlineish'
let g:airline#extensions#hunks#enabled=0
let g:airline#extensions#branch#enabled=1

if !exists('g:airline_symbols')
  let g:airline_symbols = {}
endif
let g:airline_symbols.space = "\ua0"

P.S. I'm new to vim, any advice will be greatly appreciated, thanks!

Answer

qiubix picture qiubix · Feb 26, 2015

Your .vimrc file looks fine. The problem is probably with plugins implementation, because there were some recent changes in airline initialization. Immediate solution to your problem would be to move back a little bit in git history of an airline plugin, as far as I know just the last commit causes problem, so you can just type in:

$ cd ~/.vim/bundle/vim-airline
$ git checkout HEAD~1

If you want to stay up to date with the newest changes, monitor them on github, and run :PluginUpdate (for Vundle installation) or just git pull origin master to get newest features. If problem still exists, just go back a few commits or omit the one causing problems.

I hope it helps :)