Rename sign definitions and simplify sign-ing
This commit is contained in:
parent
96a58d427c
commit
b9226caacb
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user