2014-05-29 15:35:25 +02:00
|
|
|
" Vundle is a shortcut for Vim Bundle and Is a simple plugin manager for Vim
|
|
|
|
" Author: gmarik
|
2014-09-12 09:19:24 +02:00
|
|
|
" HomePage: http://github.com/gmarik/Vundle.vim
|
|
|
|
" Readme: http://github.com/gmarik/Vundle.vim/blob/master/README.md
|
|
|
|
" Version: 0.10.2
|
2014-05-29 15:35:25 +02:00
|
|
|
|
2014-09-12 09:19:24 +02:00
|
|
|
" Plugin Commands
|
|
|
|
com! -nargs=+ -bar Plugin
|
2014-05-29 15:35:25 +02:00
|
|
|
\ call vundle#config#bundle(<args>)
|
|
|
|
|
2014-09-12 09:19:24 +02:00
|
|
|
com! -nargs=? -bang -complete=custom,vundle#scripts#complete PluginInstall
|
2014-05-29 15:35:25 +02:00
|
|
|
\ call vundle#installer#new('!' == '<bang>', <q-args>)
|
|
|
|
|
2014-09-12 09:19:24 +02:00
|
|
|
com! -nargs=? -bang -complete=custom,vundle#scripts#complete PluginSearch
|
|
|
|
\ call vundle#scripts#all('!' == '<bang>', <q-args>)
|
2014-05-29 15:35:25 +02:00
|
|
|
|
2014-09-12 09:19:24 +02:00
|
|
|
com! -nargs=0 -bang PluginList
|
|
|
|
\ call vundle#installer#list('!' == '<bang>')
|
2014-05-29 15:35:25 +02:00
|
|
|
|
2014-09-12 09:19:24 +02:00
|
|
|
com! -nargs=? -bang PluginClean
|
2014-05-29 15:35:25 +02:00
|
|
|
\ call vundle#installer#clean('!' == '<bang>')
|
|
|
|
|
2014-09-12 09:19:24 +02:00
|
|
|
com! -nargs=0 PluginDocs
|
2014-05-29 15:35:25 +02:00
|
|
|
\ call vundle#installer#helptags(g:bundles)
|
|
|
|
|
|
|
|
" Aliases
|
2014-09-12 09:19:24 +02:00
|
|
|
com! PluginUpdate PluginInstall!
|
|
|
|
|
|
|
|
" Vundle Aliases
|
|
|
|
com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleInstall PluginInstall<bang> <args>
|
|
|
|
com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleSearch PluginSearch<bang> <args>
|
|
|
|
com! -nargs=? -bang VundleClean PluginClean<bang>
|
|
|
|
com! -nargs=0 VundleDocs PluginDocs
|
|
|
|
com! VundleUpdate PluginInstall!
|
|
|
|
|
|
|
|
" Deprecated Commands
|
|
|
|
com! -nargs=+ Bundle call vundle#config#bundle(<args>)
|
|
|
|
com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleInstall PluginInstall<bang> <args>
|
|
|
|
com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleSearch PluginSearch<bang> <args>
|
|
|
|
com! -nargs=0 -bang BundleList PluginList<bang>
|
|
|
|
com! -nargs=? -bang BundleClean PluginClean<bang>
|
|
|
|
com! -nargs=0 BundleDocs PluginDocs
|
|
|
|
com! BundleUpdate PluginInstall!
|
2014-05-29 15:35:25 +02:00
|
|
|
|
2014-09-12 09:19:24 +02:00
|
|
|
" Set up the signs used in the installer window. (See :help signs)
|
2014-05-29 15:35:25 +02:00
|
|
|
if (has('signs'))
|
2014-09-12 09:19:24 +02:00
|
|
|
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
|
2014-05-29 15:35:25 +02:00
|
|
|
endif
|
|
|
|
|
2014-09-12 09:19:24 +02:00
|
|
|
" 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.
|
2014-05-29 15:35:25 +02:00
|
|
|
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 = []
|
2014-09-12 09:19:24 +02:00
|
|
|
let g:vundle_changelog = ['Updated Plugins:']
|
2014-05-29 15:35:25 +02:00
|
|
|
call vundle#config#init()
|
|
|
|
endf
|
2014-09-12 09:19:24 +02:00
|
|
|
|
|
|
|
" 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
|
|
|
|
|
|
|
|
" vim: set expandtab sts=2 ts=2 sw=2 tw=78 norl:
|