From b9226caacb9b0731e428cf26769fb8a3220ad33c Mon Sep 17 00:00:00 2001 From: gmarik Date: Fri, 5 Aug 2011 16:41:50 -0500 Subject: [PATCH] Rename sign definitions and simplify sign-ing --- autoload/vundle.vim | 8 ++++---- autoload/vundle/installer.vim | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index 902e70c..c50ca77 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -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 diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index b76e372..e1781fd 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -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