dot_files/vim-plugins/bundle/vim-powerline/autoload/Powerline/Functions/fugitive.vim
2017-07-09 00:26:06 +03:00

7 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 " }}}