Rename sign definitions and simplify sign-ing

This commit is contained in:
gmarik 2011-08-05 16:41:50 -05:00
parent 96a58d427c
commit b9226caacb
2 changed files with 5 additions and 7 deletions

View File

@ -28,10 +28,10 @@ au Filetype vundle call vundle#scripts#setup_view()
au Syntax vim syn keyword vimCommand Bundle au Syntax vim syn keyword vimCommand Bundle
if (has('signs')) if (has('signs'))
sign define VuEr text=! texthl=Error sign define Vu_error text=! texthl=Error
sign define VuAc text=> texthl=Comment sign define Vu_active text=> texthl=Comment
sign define VuCu text=. texthl=Comment sign define Vu_todate text=. texthl=Comment
sign define VuUp text=+ texthl=Comment sign define Vu_updated text=+ texthl=Comment
endif endif

View File

@ -46,9 +46,7 @@ func! s:sign(status)
return return
endif endif
let markers = {'updated': 'VuUp', 'todate': 'VuCu', 'error': 'VuEr', 'active': 'VuAc' } exe ":sign place ".line('.')." line=".line('.')." name=Vu_". a:status ." buffer=" . bufnr("%")
let marker = markers[a:status]
exe ":sign place ".line('.')." line=".line('.')." name=". marker ." buffer=" . bufnr("%")
endf endf
func! vundle#installer#install(bang, name) abort func! vundle#installer#install(bang, name) abort