Install vim-airline plugin and add settings file

Vim's statusline is now handled by the vim-airline plugin. This commit
removes the statusline cruft from vimrc and adds a tiny airline-settings
plugin to configure airline.
master
nirenjan 2013-08-15 08:37:38 -07:00
parent 95c8ad2490
commit 29fc3c0bb2
3 changed files with 12 additions and 14 deletions

View File

@ -275,6 +275,7 @@ lnfile vimrc ~/.vimrc
# Install my plugins
lnfile vim/plugin/long-lines.vim ~/.vim/plugin/
lnfile vim/plugin/match-brackets.vim ~/.vim/plugin/
lnfile vim/plugin/airline-settings.vim ~/.vim/plugin/
# Install my ftdetect plugins
lnfile vim/ftdetect/swig.vim ~/.vim/ftdetect/
@ -298,6 +299,7 @@ Bundle altercation/vim-colors-solarized # Solarized
Bundle vimwiki # Vimwiki
Bundle msanders/snipmate.vim # snipMate
Bundle tomtom/tcomment_vim # tComment
Bundle bling/vim-airline # Airline is awesome!
#######################################################################
# Install tmux & screen config files

View File

@ -0,0 +1,9 @@
" File: airline-settings.vim
" Author: Nirenjan Krishnan
" Description: Base settings for vim-airline plugin
" Last Modified: August 15, 2013
set ttm=50
let g:airline_left_sep=''
let g:airline_right_sep=''
let g:airline_theme='solarized'

13
vimrc
View File

@ -43,19 +43,6 @@ set laststatus=2
" Show tab line
set showtabline=2
" Set status to show all details
set statusline=%F " Full path to filename
set statusline+=%m " Modified flag
set statusline+=%h " Help buffer flag
set statusline+=%w " Preview window flag
set statusline+=\ %y " File type
set statusline+=%= " Switch to right align
set statusline+=[%03.3b " ASCII value for character under cursor
set statusline+=/0x%02.2B] " Same, but in hex
set statusline+=\ [%v " Virtual column number
set statusline+=,%l/%L] " Current line number, total lines
set statusline+=\ [%p%%] " Percentage through file
" Set the cursorline option
" This (by default shows up as underlining)
set cursorline