DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Customize Vim Statusline


Here vim-airline/vim-airline (formerly "bling/vim-airline") is used to customize vim's statusline.

Install with Vundle

Add the following lines into ~/.vimrc:

Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'

Customize Statusline

Add the following 2 lines to ~/.vimrc:

set laststatus=2
let g:airline_theme='badwolf'

Discussion

List all availale themes with:

ls ~/.vim/bundle/vim-airline-themes/autoload/airline/themes

Use :AirlineTheme dark to apply theme "dark" on the fly in vim.

To add full path to vim's statusline, add this into .vimrc:

let g:airline_section_c='%F'

See :h laststatus for the meaning of "laststatus".

See "CUSTOMIZATION" section of :h airline for the meaning of every section and its default contents.

See :h statusline for the meaning of "%F" and the name of all statusline items.



Published

Jun 26, 2014

Last Updated

Jun 26, 2014

Category

Tech

Tags

  • customize 5
  • statusline 1
  • vim 92

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor