From 29fc3c0bb2629c6ec8c2518b1849d5798c1f0b00 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Thu, 15 Aug 2013 08:37:38 -0700 Subject: [PATCH] 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. --- install | 4 +++- vim/plugin/airline-settings.vim | 9 +++++++++ vimrc | 13 ------------- 3 files changed, 12 insertions(+), 14 deletions(-) create mode 100644 vim/plugin/airline-settings.vim diff --git a/install b/install index 500080e..9776db3 100755 --- a/install +++ b/install @@ -165,7 +165,7 @@ Bundle() ####################################################################### while getopts "nht:" OPTION do - case "$OPTION" in + case "$OPTION" in n) echo "Skipping bundle updates" BUNDLE_NO_UPDATE=1 @@ -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 diff --git a/vim/plugin/airline-settings.vim b/vim/plugin/airline-settings.vim new file mode 100644 index 0000000..2f1dde9 --- /dev/null +++ b/vim/plugin/airline-settings.vim @@ -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' diff --git a/vimrc b/vimrc index 6e57c5b..db4440f 100644 --- a/vimrc +++ b/vimrc @@ -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