Powerline is a statusline plugin for Vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome, i3 and Qtile.
Powerline can be installed in multiple ways, depending on preference and/or usage intent.
- Install from the official repositories
- Please refer to the Powerline installation guide for additional python-pip instructions
Using a vim plugin manager
There are many vim plugin managers available which are able to install and update Powerline, assuming you are using a version of vim with Python support or you install AUR, add the following to your vimrc file:. For example, using AUR from the
call plug#begin('path/to/vim/plugins/directory') Plug 'powerline/powerline' call plug#end()
path/to/vim/plugins/directory with the actual directory, such as
~/.local/share/nvim/plugged for Neovim, and run the vim-plug command
:PlugInstall within vim. This will download Powerline from the Powerline GitHub page to the specified plugin directory and add it to vim.
Powerline uses special glyphs and symbols that will not appear correctly unless they are added to fontconfig or patched fonts are installed and used. The fontconfig and some patched fonts are available in the official repositories. A reduced set of fonts for the text console are available in AUR.package from the
There is currently one known alternative to Powerline - Vim-airline. It is a part of and can be installed separately as . Optionally, install .
Depending on where you want to use Powerline, you might need to install additional packages.
After installing the package, you may need to add
let g:powerline_pycmd="py3" or
let g:powerline_pycmd="py" to your vimrc if you have more than one version of python installed.
/usr/share/vim/vimfiles/plugin, which vim is configured to check by default, meaning this will install Powerline in vim for all users and may require additional configuration. If this is not intended, consider either using a vim plugin manager, or installing the package and adding
set rtp+=/usr/lib/python3.6/site-packages/powerline/bindings/vimto your vimrc.
After installingand . Add the following to your ~/.bashrc:
powerline-daemon -q POWERLINE_BASH_CONTINUATION=1 POWERLINE_BASH_SELECT=1 . /usr/lib/python3.6/site-packages/powerline/bindings/bash/powerline.sh
Close and reopen your terminal and it should be working. If not, check the Powerline bash prompt usage instructions to ensure that it has not changed.