Permalink
Browse files

more compact status line

  • Loading branch information...
1 parent 5a117e2 commit edc024d916d082e8bbfb0e457595145df6d05fb9 @mislav committed Mar 22, 2013
Showing with 4 additions and 12 deletions.
  1. +4 −12 vimrc
View
16 vimrc
@@ -199,17 +199,9 @@ map <Up> :echo "no!"<cr>
map <Down> :echo "no!"<cr>
if has("statusline") && !&cp
- set laststatus=2 " always show the status bar
-
- " Start the status line
- set statusline=%f\ %m\ %r
-
- " Add fugitive
+ set laststatus=2 " always show the status bar
+ set statusline=%f\ %m\ %r " filename, modified, readonly
set statusline+=%{fugitive#statusline()}
-
- " Finish the statusline
- set statusline+=Line:%l/%L[%p%%]
- set statusline+=Col:%v
- set statusline+=Buf:#%n
- set statusline+=[%b][0x%B]
+ set statusline+=\ %l/%L[%p%%] " current line/total lines
+ set statusline+=\ %v[0x%B] " current column [hex char]
endif

0 comments on commit edc024d

Please sign in to comment.