Add own statusline till we get powerline to work as expected

This commit is contained in:
Thomas Ruoff
2012-04-01 23:44:05 +02:00
parent 32a92f2c53
commit 090193096f

18
vimrc
View File

@@ -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()