diff --git a/vimrc b/vimrc index 18c4253..4f45c29 100644 --- a/vimrc +++ b/vimrc @@ -83,6 +83,21 @@ au GUIEnter * set vb t_vb= syntax enable " enable syntax highlighting +" Statusline + +if has('statusline') + set laststatus=2 + + " Broken down into easily includeable segments + set statusline=%<%f\ " Filename + set statusline+=%w%h%m%r " Options + set statusline+=%{fugitive#statusline()} " Git Hotness + set statusline+=\ [%{&ff}/%Y] " filetype + set statusline+=\ [%{getcwd()}] " current dir + "set statusline+=\ [A=\%03.3b/H=\%02.2B] " ASCII / Hexadecimal value of char + set statusline+=%=%-14.(%l,%c%V%)\ %p%% " Right aligned file nav info +endif + " VIM 7.3 FEATURES if v:version >= 703 @@ -248,9 +263,6 @@ au FileType python set noexpandtab au FileType javascript setlocal ts=2 sts=2 sw=2 au BufRead,BufNewFile *.json set ft=json -" always show status line -set laststatus=2 - "" MISC FUNCTIONS function! FileSize()