]> git.r.bdr.sh - rbdr/dotfiles/blame - vim/autoload/Powerline/Functions/fugitive.vim
Merge branch 'master' of github.com:benbeltran/dotfiles
[rbdr/dotfiles] / vim / autoload / Powerline / Functions / fugitive.vim
CommitLineData
321ecaca
BB
1function! Powerline#Functions#fugitive#GetBranch(symbol) " {{{
2 let ret = fugitive#statusline()
3
4 let ret = substitute(ret, '\c\v\[?GIT\(([a-z0-9\-_\./:]+)\)\]?', a:symbol .' \1', 'g')
5
6 return ret
7endfunction " }}}