Skip to content

Instantly share code, notes, and snippets.

View zvyn's full-sized avatar
🐧

Milan Oberkirch zvyn

🐧
View GitHub Profile
@tawrahim
tawrahim / vim status line
Created May 11, 2013 16:33
An informative status line in vim
" show little divider at bottom of vim
set laststatus=2
"an informative status line
set statusline=\[%t%m]\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [LINE=%04l,COL=%04v]\ %{GitBranch()}
" Function to display git branch
function! GitBranch()
let branch = system("git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* //'")