Browse Source

add command to explore bundle dir

pull/467/head
Lucas Hoffmann 12 years ago
parent
commit
8b670ee914
2 changed files with 20 additions and 1 deletions
  1. +4
    -1
      autoload/vundle.vim
  2. +16
    -0
      autoload/vundle/scripts.vim

+ 4
- 1
autoload/vundle.vim View File

@ -23,6 +23,9 @@ com! -nargs=? -bang PluginClean
com! -nargs=0 PluginDocs
\ call vundle#installer#helptags(g:vundle#bundles)
com! -nargs=? -complete=custom,vundle#scripts#complete PluginExplore
\ call vundle#scripts#explore(<q-args>)
" Aliases
com! -nargs=* -complete=custom,vundle#scripts#complete PluginUpdate PluginInstall! <args>
@ -31,8 +34,8 @@ com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleInstall Plugi
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!
com! -nargs=* -complete=custom,vundle#scripts#complete VundleUpdate PluginInstall! <args>
com! -nargs=? -complete=custom,vundle#scripts#complete VundleExplore PluginExplore <args>
" Deprecated Commands
com! -nargs=+ Bundle call vundle#config#bundle(<args>)


+ 16
- 0
autoload/vundle/scripts.vim View File

@ -212,6 +212,22 @@ func! vundle#scripts#view(title, headers, results)
endf
" ---------------------------------------------------------------------------
" Explore the folder of a given bundle or g:bundle_dir.
"
" bundle -- either a bundle object or a bundle specification string.
" ---------------------------------------------------------------------------
func! vundle#scripts#explore(bundle)
if empty(a:bundle)
exec 'Vexplore' g:bundle_dir
elseif type(a:bundle) == type({})
exec 'Vexplore' a:bundle.rtpath
elseif type(a:bundle) == type('')
exec 'Vexplore' vundle#config#init_bundle(a:bundle, {}).rtpath
endif
endf
" ---------------------------------------------------------------------------
" Load the plugin database from vim-scripts.org .
"


Loading…
Cancel
Save