" Vundle is a shortcut for Vim Bundle and Is a simple plugin manager for Vim " Author: gmarik " HomePage: http://github.com/gmarik/Vundle.vim " Readme: http://github.com/gmarik/Vundle.vim/blob/master/README.md " Version: 0.10.2 " Save the path from which Vundle was first loaded let vundle#vundle_path = expand(':p:h:h') " Plugin Commands com! -nargs=+ -bar Plugin \ call vundle#config#bundle() 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('!' == '', ) com! -nargs=0 -bang PluginList \ call vundle#installer#list('!' == '') com! -nargs=? -bang PluginClean \ call vundle#installer#clean('!' == '') com! -nargs=0 PluginDocs \ call vundle#installer#helptags(g:vundle#bundles) " Aliases com! -nargs=* -complete=custom,vundle#scripts#complete PluginUpdate PluginInstall! " Vundle Aliases com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleInstall PluginInstall com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleSearch PluginSearch com! -nargs=? -bang VundleClean PluginClean com! -nargs=0 VundleDocs PluginDocs com! VundleUpdate PluginInstall! com! -nargs=* -complete=custom,vundle#scripts#complete VundleUpdate PluginInstall! " Deprecated Commands 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=0 -bang BundleList PluginList com! -nargs=? -bang BundleClean PluginClean com! -nargs=0 BundleDocs PluginDocs com! BundleUpdate PluginInstall! " Set up the signs used in the installer window. (See :help signs) if (has('signs')) sign define Vu_error text=! texthl=Error sign define Vu_active text=> texthl=Comment sign define Vu_todate text=. texthl=Comment sign define Vu_new text=+ texthl=Comment sign define Vu_updated text=* texthl=Comment sign define Vu_deleted text=- texthl=Comment sign define Vu_helptags text=* texthl=Comment sign define Vu_pinned text== texthl=Comment endif " Set up Vundle. This function has to be called from the users vimrc file. " This will force Vim to source this file as a side effect which wil define " the :Plugin command. After calling this function the user can use the " :Plugin command in the vimrc. It is not possible to do this automatically " because when loading the vimrc file no plugins where loaded yet. func! vundle#rc(...) abort if a:0 > 0 let g:vundle#bundle_dir = expand(a:1, 1) endif " If this function has already been called and Vim hasn't finished loading, " that is, we are not sourcing our .vimrc file later on, Vundle is probably " loading from several sources which can lead to unpredictable results. if exists('g:vundle#vundle_loading') && g:vundle#vundle_loading echoerr 'Vundle is probably loading from several sources. ' . \ 'This can lead to unpredictable results! ' . \ 'Please find and remove the duplication.' endif " Set g:vundle_loading only if Vim hasn't finished loading. if !exists('g:vundle#vundle_loaded') || !g:vundle#vundle_loaded let g:vundle#vundle_loading = 1 endif call vundle#config#init() endf " Alternative to vundle#rc, offers speed up by modifying rtp only when end() " called later. func! vundle#begin(...) abort let g:vundle#lazy_load = 1 call call('vundle#rc', a:000) endf " Finishes putting plugins on the rtp. func! vundle#end(...) abort unlet g:vundle#lazy_load call vundle#config#activate_bundles() endf " Initialize some global variables used by Vundle. let vundle#bundle_dir = expand('$HOME/.vim/bundle', 1) let vundle#bundles = [] let vundle#lazy_load = 0 let vundle#log = [] let vundle#updated_bundles = [] augroup vundle au! " Tell Vundle it has finished loading and Vim is up and running. au VimEnter * unlet g:vundle#vundle_loading au VimEnter * let g:vundle#vundle_loaded = 1 augroup END " vim: set expandtab sts=2 ts=2 sw=2 tw=78 norl: