Vim powerline doesn't show the current branch

I'm using the vim plugin called powerline and it isn't showing the git branch I'm on, while it's supposed to be activated by default. The fugitive plugin is installed, though I don't think it was required. Is there anything else I'm supposed to do for it to work?


Solution 1:

Try running :PowerlineClearCache. The branch is not activated by default.

Solution 2:

you should have fugitive installed, if you have it already and yet it does not show, and :PowerlineClearCache doesn't help then try removing Powerline_default_default_compatible.cache from powerline plugin folder and restarting vim.