Browse Source

Merge 948ed44417 into 003c3769be

pull/29/merge
GitHub Merge Button 15 years ago
parent
commit
3b6d21fa05
4 changed files with 40 additions and 17 deletions
  1. +1
    -1
      README.md
  2. +13
    -1
      autoload/vundle/installer.vim
  3. +25
    -15
      doc/vundle.txt
  4. +1
    -0
      test/vimrc

+ 1
- 1
README.md View File

@ -29,7 +29,7 @@
Bundle 'FuzzyFinder'
Bundle 'rails.vim'
" non github repos
Bundle 'git://git.wincent.com/command-t.git'
Bundle 'git://git.wincent.com/command-t.git', {'depth': 0}
" ...
filetype plugin indent on " required!


+ 13
- 1
autoload/vundle/installer.vim View File

@ -67,7 +67,19 @@ func! s:sync(bang, bundle) abort
if !(a:bang) | return 0 | endif
let cmd = 'cd '.shellescape(a:bundle.path()).' && git pull'
else
let cmd = 'git clone '.a:bundle.uri.' '.shellescape(a:bundle.path())
let cmd = 'git clone '
if has_key(a:bundle, 'depth')
let depth = a:bundle.depth
elseif exists('g:vundle_depth')
let depth = g:vundle_depth
else
" Clone as little as possible by default.
let depth = 1
endif
if depth > 0
let cmd .= '--depth '.depth.' '
endif
let cmd .= a:bundle.uri.' '.shellescape(a:bundle.path())
endif
silent exec '!'.cmd
return 1


+ 25
- 15
doc/vundle.txt View File

@ -7,13 +7,14 @@ CONTENTS ~
1. About |vundle-about|
2. Why Vundle |vundle-why-vundle|
3. Quick start |vundle-quickstart|
4. Scrips |vundle-scripts|
4.1. Configure scripts |vundle-scripts-configure|
4.2. Installing scripts |vundle-scripts-install|
4.3. Updating scripts |vundle-scripts-update|
4.4. Searching scripts |vundle-scripts-search|
4.5. Cleanup |vundle-scripts-cleanup|
5. Interactive mode |vundle-interactive|
4. Configuration |vundle-configuration|
5. Scrips |vundle-scripts|
5.1. Configure scripts |vundle-scripts-configure|
5.2. Installing scripts |vundle-scripts-install|
5.3. Updating scripts |vundle-scripts-update|
5.4. Searching scripts |vundle-scripts-search|
5.5. Cleanup |vundle-scripts-cleanup|
6. Interactive mode |vundle-interactive|
===========================================================================
@ -66,7 +67,7 @@ in order to install/search [all available vim scripts]
Bundle 'FuzzyFinder'
Bundle 'rails.vim'
" non github repos
Bundle 'git://git.wincent.com/command-t.git'
Bundle 'git://git.wincent.com/command-t.git', {'depth': 0}
" ...
filetype plugin indent on " required!
@ -80,9 +81,18 @@ in order to install/search [all available vim scripts]
Installing requires [Git] and triggers [Git clone](http://gitref.org/creating/#clone) for
each configured repo to `~/.vim/bundle/`.
4. SCRIPTS ~
4. CONFIGURATION ~
*vundle-configuration*
Set the clone depth for all packages: >
let g:vundle_depth = 5
The default value is 1, to clone as little as possible. Any non-positive value
causes the entire repository to be cloned.
5. SCRIPTS ~
*vundle-scripts*
4.1 CONFIGURE SCRIPTS ~
5.1 CONFIGURE SCRIPTS ~
*vundle-scripts-configure* *Bundle*
Before installing scripts they need to be configured. It's done using `Bundle`
command in `.vimrc`: >
@ -102,7 +112,7 @@ equals full uri >
NOTE: Vundle defaults to http:// protocol for the short URIs
4.2 INSTALL SCRIPTS ~
5.2 INSTALL SCRIPTS ~
*vundle-scripts-install* *BundleInstall*
run >
:BundleInstall
@ -118,14 +128,14 @@ installs and activates unite.vim. You can use Tab to auto-complete known script
NOTE: installation, as just described, doesn't automatically configure scripts;
you have to configure them manually.
4.3 UPDATE SCRIPTS ~
5.3 UPDATE SCRIPTS ~
*vundle-scripts-update* *BundleInstall!*
run >
:BundleInstall! " NOTE: bang(!)
installs or updates configured scripts.
4.4 SEARCHING ~
5.4 SEARCHING ~
*vundle-scripts-search* *BundleSearch*
run >
:Bundles foo " NOTE: plural Bundles not singular Bundle
@ -149,7 +159,7 @@ it will display all known scripts
Searching requires [`curl`](http://curl.haxx.se/)
4.5 CLEANING UP ~
5.5 CLEANING UP ~
*vundle-scripts-cleanup* *BundleClean*
run >
@ -164,7 +174,7 @@ requires confirmation before removal of unused script-dirs from your `.vim/bundl
removes unused scripts with no questions.
*vundle-interactive*
5. INTERACTIVE MODE ~
6. INTERACTIVE MODE ~
Vundle provides simple interactive mode to help you explore new scripts easily.
Interactive mode is available as result of :Bundles command. For instance, running: >


+ 1
- 0
test/vimrc View File

@ -32,6 +32,7 @@ Bundle '~/Dropbox/.gitrepos/utilz.vim.git'
" with options
Bundle 'rstacruz/sparkup.git', {'rtp': 'vim/'}
Bundle 'westoque/molly.vim', {'depth': 5}
" Camel case
Bundle 'vim-scripts/RubySinatra'


Loading…
Cancel
Save