mirror of
https://github.com/amix/vimrc
synced 2025-02-28 14:12:51 +08:00
8 lines
216 B
VimL
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 " }}}
|