Skip to content

Instantly share code, notes, and snippets.

@joshukraine
Last active August 10, 2020 03:04
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshukraine/2c0078b9eba270382d58 to your computer and use it in GitHub Desktop.
Save joshukraine/2c0078b9eba270382d58 to your computer and use it in GitHub Desktop.
How to Install Powerline on OS X

How to Install Powerline on OS X

Preface

This whole thing hinges on having the right version of Python installed. We're going to do it via Homebrew. You have to install Python BEFORE you install Vim. So if Vim is already installed (the Homebrew version, that is) then remove it first.

Installation

Check to see if vim or python are installed.

brew list

Remove vim if necessary.

brew uninstall vim

Install python.

brew install python

Install vim.

brew install vim --env-std --override-system-vim

Check which python version you're using.

which python
/usr/local/bin/python

Install powerline with pip.

pip install git+git://github.com/Lokaltog/powerline

This should install powerline here:

/usr/local/lib/python2.7/site-packages/powerline

Add the following lines to your .vimrc.

let g:Powerline_symbols = 'unicode'
python from powerline.vim import setup as powerline_setup
python powerline_setup()
python del powerline_setup

Complete your configuration of powerline by cloning this repo:

git clone https://github.com/joshukraine/powerline-configs.git ~/.config/powerline

Resources

@richardleandro1
Copy link

work on high sierra?

@dotWee
Copy link

dotWee commented Apr 4, 2018

Just follow the instructions, just installed it on my high sierra machine. You can leave out the last command:

git clone https://github.com/joshukraine/powerline-configs.git ~/.config/powerline

This won't work as the repository doesn't exist anymore. It's also not necessary for working installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment