From 090193096f21ad1c97a189ea30e52af82b215374 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Sun, 1 Apr 2012 23:44:05 +0200 Subject: [PATCH] Add own statusline till we get powerline to work as expected --- vimrc | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) 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()