From bb53f89504917ef916083dc1e2f70f2aad351836 Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Wed, 26 Mar 2014 08:54:31 +0100 Subject: [PATCH] update deprecated API to call the new API directly Still keep :Bundle backwards compatible. --- autoload/vundle.vim | 58 +++++++++++-------------------------- autoload/vundle/scripts.vim | 6 ++-- 2 files changed, 20 insertions(+), 44 deletions(-) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index adf1b87..76d4d59 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -12,13 +12,13 @@ com! -nargs=? -bang -complete=custom,vundle#scripts#complete PluginInstall \ call vundle#installer#new('!' == '', ) com! -nargs=? -bang -complete=custom,vundle#scripts#complete PluginSearch -\ call vundle#scripts#all('!'=='', ) +\ call vundle#scripts#all('!' == '', ) com! -nargs=? -bang -complete=custom,vundle#scripts#complete Plugins -\ call vundle#scripts#all('!'=='', ) +\ call vundle#scripts#all('!' == '', ) com! -nargs=0 -bang PluginList -\ call vundle#installer#list('!'=='') +\ call vundle#installer#list('!' == '') com! -nargs=? -bang PluginClean \ call vundle#installer#clean('!' == '') @@ -30,45 +30,21 @@ com! -nargs=0 PluginDocs com! PluginUpdate PluginInstall! " Vundle Aliases -com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleInstall -\ call vundle#installer#new('!' == '', ) - -com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleSearch -\ call vundle#scripts#all('!'=='', ) - -com! -nargs=? -bang VundleClean -\ call vundle#installer#clean('!' == '') - -com! -nargs=0 VundleDocs -\ call vundle#installer#helptags(g:bundles) - -" Aliases -com! VundleUpdate PluginInstall! +com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleInstall PluginList +com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleSearch PluginSearch +com! -nargs=? -bang VundleClean PluginClean +com! -nargs=0 VundleDocs PluginDocs +com! VundleUpdate PluginInstall! " deprecated -com! -nargs=+ Bundle -\ call vundle#config#bundle() - -com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleInstall -\ call vundle#installer#new('!' == '', ) - -com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleSearch -\ call vundle#scripts#all('!'=='', ) - -com! -nargs=? -bang -complete=custom,vundle#scripts#complete Bundles -\ call vundle#scripts#all('!'=='', ) - -com! -nargs=0 -bang BundleList -\ call vundle#installer#list('!'=='') - -com! -nargs=? -bang BundleClean -\ call vundle#installer#clean('!' == '') - -com! -nargs=0 BundleDocs -\ call vundle#installer#helptags(g:bundles) - -" Aliases -com! BundleUpdate BundleInstall! +com! -nargs=+ Bundle call vundle#config#bundle() +com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleInstall PluginInstall +com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleSearch PluginSearch +com! -nargs=? -bang -complete=custom,vundle#scripts#complete Bundles Plugins +com! -nargs=0 -bang BundleList PluginList +com! -nargs=? -bang BundleClean PluginClean +com! -nargs=0 BundleDocs PluginDocs +com! BundleUpdate PluginInstall! if (has('signs')) sign define Vu_error text=! texthl=Error @@ -85,6 +61,6 @@ func! vundle#rc(...) abort let g:bundle_dir = len(a:000) > 0 ? expand(a:1, 1) : expand('$HOME/.vim/bundle', 1) let g:updated_bundles = [] let g:vundle_log = [] - let g:vundle_changelog = ['Updated Bundles:'] + let g:vundle_changelog = ['Updated Plugins:'] call vundle#config#init() endf diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index 6da47d1..5c43547 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -138,10 +138,10 @@ func! vundle#scripts#view(title, headers, results) nnoremap h :h vundle nnoremap ? :norm h - nnoremap c :BundleClean - nnoremap C :BundleClean! + nnoremap c :PluginClean + nnoremap C :PluginClean! - nnoremap s :BundleSearch + nnoremap s :PluginSearch nnoremap R :call vundle#scripts#reload() " goto first line after headers