Vim/Airline

Set up

  1. (Install vim plugin manager e.g. vim plug)
  2. Install vim-airline and themes

    Plug ‘vim-airline/vim-airline’
    Plug ‘vim-airline/vim-airline-themes’

  3. Install powerline fonts: https://github.com/powerline/fonts#quick-installation

  4. Set your terminal font to be one of the powerline fonts.
  5. Add the necessary configuration to vimrc or init.vim file. Type help airline, go to airline-customization and copy-paste the powerline symbols part.

    let g:airline_powerline_fonts = 1

    if !exists(‘g:airline_symbols’)
    let g:airline_symbols = {}
    endif

    ” powerline symbols (copy-paste from the airline help page)
    let g:airline_left_sep = ‘’
    let g:airline_left_alt_sep = ‘’
    let g:airline_right_sep = ‘’
    let g:airline_right_alt_sep = ‘’
    let g:airline_symbols.branch = ‘’
    let g:airline_symbols.readonly = ‘’
    let g:airline_symbols.linenr = ‘☰’
    let g:airline_symbols.maxlinenr = ‘’

    ” theme (choose a theme from airline-themes) let g:airline_theme=’luna’