Last Updated: February 25, 2016
·
3.808K
· dfeddad

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:

  1. 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

  1. 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.

  2. Download a patched powerline font.
    In my case, I chose Source Code Pro

  3. The font configuration in iTerm2 should look like the screenshot:

Picture

  1. Add the following line to .gvimrc.after:

    set guifont=Source\ Code\ Pro\ for\ Powerline:h14

And that's it. Hope this can help someone.

2 Responses
Add your response

Thanks, worked great for me

over 1 year ago ·

Thank you so much !

over 1 year ago ·