mirror of
https://github.com/amix/vimrc
synced 2025-07-07 08:45:00 +08:00
Fixed some things in peaksea (regarding omni menu and folding in terminal mode). Optimized a bit colors for powerline
This commit is contained in:
7
sources_forked/vim-powerline/autoload/Powerline/Functions/fugitive.vim
Executable file
7
sources_forked/vim-powerline/autoload/Powerline/Functions/fugitive.vim
Executable file
@ -0,0 +1,7 @@
|
||||
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 " }}}
|
Reference in New Issue
Block a user