Setup Powerline for Vim/MacVim in OSX 10.9.1
After spending a couple of hours googling and trying different things, these are the steps I followed to get Powerline setup and working properly:
-
Install Powerline using the following command:
sudo pip install git+git://github.com/Lokaltog/powerline
Notice that I am using the default OSX Python version 2.7 (not installed with homebrew). The package will be installed in /Library/Python/2.7/site-packages
-
Add the following line to my .vimrc.after file (I am using Janus vim distribution):
source /Library/Python/2.7/site-packages/powerline/bindings/vim/plugin/powerline.vim
With this command, powerline is activated but the statusline looks weird, so I had to configure the fonts.
Download a patched powerline font.
In my case, I chose Source Code ProThe font configuration in iTerm2 should look like the screenshot:
-
Add the following line to .gvimrc.after:
set guifont=Source\ Code\ Pro\ for\ Powerline:h14
And that's it. Hope this can help someone.
Written by Djamel Eddine Feddad
Related protips
2 Responses
Thanks, worked great for me
Thank you so much !