Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to install and use the vim-airline plugin for Vim

📅 2013-Jul-12 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ font, plugin, statusline, vim, vim-airline, vim-powerline ⬩ 📚 Archive

[caption id="attachment_4256" align="aligncenter" width="640"][ ](http://codeyarns.files.wordpress.com/2014/02/20140216-ocr.png) Vim using vim-airline for statusline[/caption]

vim-airline is a newer and lighter alternative to the vim-powerlinee plugin. It shows a beautiful and informative statusline in Vim.

Installation

The vim-airline plugin can be installed for Pathogen by cloning its Github repository.

Fancy symbols

vim-airline can display those fancy symbols in the statusline in just a few steps:

  1. Download the powerline-fonts that have been patched to have the fancy powerline symbols.

  2. In the downloaded fonts, find the font that you use for your terminal and copy over those fonts to ~/.fonts

  3. Install the fonts using: fc-cache -vf ~/.fonts

  4. Once installed, configure your terminal to use these fonts. For GNOME Terminal, this can be done in Edit > Profile Preferences > General.

  5. Enable fancy symbols by adding this line to your vimrc: let g:airline_powerline_fonts=1

Tried with: Vim 7.3 and Ubuntu 12.04 LTS