Browse Source

Finished feature Unplug

pull/424/head
leiming 12 years ago
parent
commit
1501eef02d
4 changed files with 22 additions and 1 deletions
  1. +3
    -0
      README.md
  2. +4
    -1
      autoload/vundle.vim
  3. +13
    -0
      autoload/vundle/config.vim
  4. +2
    -0
      test/vimrc

+ 3
- 0
README.md View File

@ -62,6 +62,9 @@
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Plugin 'tpope/vim-fugitive'
" Invalid a Plugin
Unplug 'tpope/vim-fugitive'
" scripts from http://vim-scripts.org/vim/scripts.html
Plugin 'L9'
Plugin 'FuzzyFinder'


+ 4
- 1
autoload/vundle.vim View File

@ -8,6 +8,9 @@
com! -nargs=+ -bar Plugin
\ call vundle#config#bundle(<args>)
com! -nargs=+ -bar Unplug
\ call vundle#config#unplug(<args>)
com! -nargs=? -bang -complete=custom,vundle#scripts#complete PluginInstall
\ call vundle#installer#new('!' == '<bang>', <q-args>)
@ -30,7 +33,7 @@ com! -nargs=0 PluginDocs
com! PluginUpdate PluginInstall!
" Vundle Aliases
com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleInstall PluginList<bang> <args>
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


+ 13
- 0
autoload/vundle/config.vim View File

@ -6,6 +6,19 @@ func! vundle#config#bundle(arg, ...)
return bundle
endf
func! vundle#config#unplug(arg, ...)
let bundle = vundle#config#init_bundle(a:arg, a:000)
let bundle_index=0
for b in g:bundles
if bundle.name_spec == b.name_spec
call s:rtp_rm(b.rtpath)
unlet g:bundles[bundle_index]
break
endif
let bundle_index=bundle_index+1
endfor
endf
func! vundle#config#init()
if !exists('g:bundles') | let g:bundles = [] | endif
call s:rtp_rm_a()


+ 2
- 0
test/vimrc View File

@ -52,6 +52,8 @@ Bundle '~/Dropbox/.gitrepos/utilz.vim.git'
Bundle 'rstacruz/sparkup.git', {'rtp': 'vim/'}
Bundle 'matchit.zip', {'name': 'matchit'}
UnPlug 'molokai' "make molokai invalid
" Camel case
Bundle 'vim-scripts/RubySinatra'


Loading…
Cancel
Save