1
0
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:
amix
2013-04-13 18:33:45 -03:00
parent 0087ef8f9b
commit 67a1baaae3
38 changed files with 27 additions and 30 deletions

View File

@ -0,0 +1,17 @@
function! Powerline#Functions#hgrev#Status(symbol) " {{{
if ! exists('*HGRev')
" HGRev hasn't been loaded yet
return ''
endif
if !exists("b:statusline_hg_status")
silent execute "RefreshMercurialRev"
endif
let b:statusline_hg_status=HGRev()
if b:statusline_hg_status != '-'
let ret = "\u26A1". '' . substitute(b:statusline_hg_status, '^[^ ]*', '\1', 'g')
let ret=substitute(ret,' M$','+','g')
else
let ret=''
endif
return ret
endfunction " }}}