1
0
mirror of https://github.com/captn3m0/dotfiles.git synced 2024-09-19 12:56:58 +00:00
dotfiles/files/vim/.vim/bundle/vim-powerline/autoload/Powerline/Functions/fugitive.vim
2014-06-08 15:02:00 +05:30

8 lines
216 B
VimL

function! Powerline#Functions#fugitive#GetBranch(symbol) " {{{
let ret = fugitive#statusline()
let ret = substitute(ret, '\c\v\[?GIT\(([a-z0-9\-_\./:]+)\)\]?', a:symbol .' \1', 'g')
return ret
endfunction " }}}