How to quickly install the Powerline (nice statusline) in vim. These settings are all based on a system-wide installation (Debian).
To start, Powerline requires python support in vim, run the following command, if it returns empty, then you should install python-nox (or recompile vim with python support).
vim --version | grep +python
To start the Powerline installation, run the following commands,
apt-get install python-pip git pip install git+git://github.com/Lokaltog/powerline wget --no-check-certificate https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf mv PowerlineSymbols.otf /usr/share/fonts/ mv 10-powerline-symbols.conf /etc/fonts/conf.d/ fc-cache -vf
Edit your vimrc (~/.vimrc), and add the following lines,
set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/ " Always show statusline set laststatus=2 " Use 256 colours (Use this setting only if your terminal supports 256 colours) set t_Co=256 " (optional) use on dark background set background=dark
It’s possible the first line needs to be changed, possible variations depending on system config,
set rtp+=/usr/local/lib/python2.6/dist-packages/powerline/bindings/vim/ set rtp+=/usr/local/lib/python2.6/dist-packages/Powerline-beta-py2.6.egg/bindings/vim/
If you are using Vim in combination with Tmux, and your statusline/powerline colors are whack, try
This will force tmux to assume the console can handle 256 colors, which, normally, should work