This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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/* //'") |