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
if (has('signs'))
sign define VuEr text=! texthl=Error
sign define VuAc text=> texthl=Comment
sign define VuCu text=. texthl=Comment
sign define VuUp text=+ texthl=Comment
sign define Vu_error text=! texthl=Error
sign define Vu_active text=> texthl=Comment
sign define Vu_todate text=. texthl=Comment
sign define Vu_updated text=+ texthl=Comment
endif

View File

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