Merge branch 'master' into UI

This commit is contained in:
gmarik 2011-03-19 18:15:23 -05:00
commit 69359ff74d
2 changed files with 84 additions and 87 deletions

View File

@ -2,23 +2,7 @@
[Vundle] is a short cut for **V**imb**undle** and is a [Vim] plugin manager. [Vundle] is a short cut for **V**imb**undle** and is a [Vim] plugin manager.
## Why ## Quick start
[Vundle] allows to:
- keep track and configure your scripts right in `.vimrc`
- install configured scripts (aka bundle)
- search [all available vim scripts] by name
- clean unused scripts up
Also as a bonus [Vundle]:
- manages runtime path of your installed scripts
- regenerates helptag atomatically
[Vundle] takes advantage of [vim-scripts.org](http://vim-scripts.org)
in order to install/search [all available vim scripts]
## How
1. Setup [Vundle]: 1. Setup [Vundle]:
@ -45,34 +29,25 @@ 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/`. Installing requires [Git] and triggers [Git clone](http://gitref.org/creating/#clone) for each configured repo to `~/.vim/bundle/`.
## Script installation ## Why Vundle
`BundleInstall` installs script only if it hasn't been already installed. [Vundle] allows to:
`BundleInstall` is faster than `BundleInstall!` (note bang at the end) because latter fetches scripts without any checks.
Use `BundleInstall` to install new scripts. Use `BundleInstall!` to update scripts.
## Searching - keep track and configure your scripts right in `.vimrc`
- install configured scripts (aka bundle)
- update configured scripts
- search [all available vim scripts] by name
- clean unused scripts up
:BundleSearch foo Also as a bonus [Vundle]:
lists search results in new split window, ie: - manages runtime path of your installed scripts
- regenerates helptag atomatically
Bundle "VimFootnotes"
Bundle "foo.vim"
so you can just copy ones you need to `.vimrc`. ## Docs
:BundleSearch! foo see [`:h vundle`](vundle/blob/master/doc/vundle.txt) vimdoc for more details.
refreshes script list before performing actual search.
Searching requires [`curl`](http://curl.haxx.se/)
## Cleaning up
:BundleClean
confirms removal of unused script dirs from your `.vim/bundle`. `BundleClean!` does that silently.
## Examples ## Examples
@ -95,7 +70,7 @@ confirms removal of unused script dirs from your `.vim/bundle`. `BundleClean!` d
* √ activate newly added bundles on .vimrc reload or after :BundleInstall * √ activate newly added bundles on .vimrc reload or after :BundleInstall
* √ use preview window for search results * √ use preview window for search results
* Vim documentation * √ vim documentation
* improve error handling * improve error handling
* allow specify revision/version? * allow specify revision/version?
* search by description aswell * search by description aswell

View File

@ -1,46 +1,51 @@
*vundle.txt* Vundle plug-in for Vim. *vundle* *vundle.txt* Vundle the plug-in manager for Vim. *vundle*
CONTENTS *vundle-contents* CONTENTS ~
*vundle-contents*
===========================================================================
1. About |vundle-about| 1. About |vundle-about|
2. Why Vundle |vundle-why-vundle| 2. Why Vundle |vundle-why-vundle|
3. Setup |vundle-setup| 3. Quick start |vundle-quickstart|
4. Scrips |vundle-scripts| 4. Scrips |vundle-scripts|
4.1. Configure scripts |vundle-script-configure| 4.1. Configure scripts |vundle-scripts-configure|
4.2. Installing scripts |vundle-script-install| 4.2. Installing scripts |vundle-scripts-install|
4.3. Searching scripts |vundle-script-search| 4.3. Updating scripts |vundle-scripts-update|
4.4. Cleanup |vundle-about| 4.4. Searching scripts |vundle-scripts-search|
4.5. Cleanup |vundle-scripts-cleanup|
===========================================================================
ABOUT *vundle-about* ABOUT *vundle-about*
*Vundle* is a short cut for Vim bundle and is the Vim plugin manager. Vundle is a short cut for Vim bundle and is the Vim plug-in manager.
WHY VUNDLE *vunde-why-vundle* 2. WHY VUNDLE ~
*vundle-why-vundle*
*Vundle* allows to: Vundle allows to:
- keep track and configure your scripts right in `.vimrc` - keep track and configure your scripts right in `.vimrc`
- install configured scripts (aka bundle) - install configured scripts (aka bundle)
- update configured scripts
- search [all available vim scripts] by name - search [all available vim scripts] by name
- clean unused scripts up - clean up from unused scripts
Also as a bonus *Vundle* : Also as *Vundle* :
- manages runtime path of your installed scripts - manages runtime path of your installed scripts
- regenerates helptag atomatically - regenerates helptag atomatically
[Vundle] takes advantage of [vim-scripts.org](http://vim-scripts.org) Vundle takes advantage of [vim-scripts.org](http://vim-scripts.org)
in order to install/search [all available vim scripts] in order to install/search [all available vim scripts]
SETUP *vundle-setup* 3. QUICK START ~
*vundle-quickstart*
1. Setup [Vundle]: 1) Setup Vundle: >
git clone http://github.com/gmarik/vundle.git ~/.vim/vundle.git git clone http://github.com/gmarik/vundle.git ~/.vim/vundle.git
2. Configure bundles: 2) Configure bundles:
Append to your `~/.vimrc`: >
Append to your `~/.vimrc`:
set rtp+=~/.vim/vundle.git/ set rtp+=~/.vim/vundle.git/
call vundle#rc() call vundle#rc()
@ -53,52 +58,69 @@ SETUP *vundle-setup*
Bundle "git://git.wincent.com/command-t.git" Bundle "git://git.wincent.com/command-t.git"
" ... " ...
3. Install configured bundles: 3) Install configured bundles:
Launch `vim`, run `:BundleInstall` (**no `Vim` restart required** since v0.5) Launch `vim`, run >
Installing requires [Git] and triggers [Git clone](http://gitref.org/creating/#clone) for each configured repo to `~/.vim/bundle/`. :BundleInstall
SCRIPTS *vundle-scripts* Installing requires [Git] and triggers [Git clone](http://gitref.org/creating/#clone) for
each configured repo to `~/.vim/bundle/`.
CONFIGURE SCRIPTS *vundle-scripts-configure* 4. SCRIPTS ~
*vundle-scripts*
4.1 CONFIGURE SCRIPTS ~
*vundle-scripts-configure* *Bundle*
Before installing scripts they need to be configured. It's done using `Bundle`
command in `.vimrc`: >
Bundle 'git_repo_uri' " 'git_repo_uri' should be a valid uri to git repository
or >
Bundle 'script_name' " 'script-name' should be an official script name (see |vundle-scripts-search| )
## Script installation 4.2 INSTALL SCRIPTS ~
*vundle-scripts-install* *BundleInstall*
run >
:BundleInstall
`BundleInstall` installs script only if it hasn't been already installed. installs configured scripts. Newly installed scripts will be automatically
`BundleInstall` is faster than `BundleInstall!` (note bang at the end) because latter fetches scripts without any checks. enabled. Except special cases requiring compilation or preconfiguration.
Use `BundleInstall` to install new scripts. Use `BundleInstall!` to update scripts.
SEARCHING |*vundle-scripts-search*| 4.3 UPDATE SCRIPTS ~
*vundle-scripts-update* *BundleInstall!*
run >
:BundleInstall! " note bang(!)
installs or updates configured scripts.
4.4 SEARCHING ~
*vundle-scripts-search* *BundleSearch*
run >
:BundleSearch foo :BundleSearch foo
lists search results in new split window, ie: lists search results in new split window, ie:
>
Bundle "VimFootnotes" Bundle "VimFootnotes"
Bundle "foo.vim" Bundle "foo.vim"
so you can just copy ones you need to `.vimrc`. so you can just copy ones you need to `.vimrc`. *BundleSearch!*
>
:BundleSearch! foo :BundleSearch! foo " note bang(!)
refreshes script list before performing actual search. refreshes script list before performing actual search.
Searching requires [`curl`](http://curl.haxx.se/) Searching requires [`curl`](http://curl.haxx.se/)
CLEANING UP |*vundle-scripts-cleanup*| 4.5 CLEANING UP ~
*vundle-scripts-cleanup* *BundleClean*
run >
:BundleClean :BundleClean
confirms removal of unused script dirs from your `.vim/bundle`. confirms removal of unused script dirs from your `.vim/bundle`.
`BundleClean!` does that silently. *BundleClean!*
>
:BundleClean!
removes unused scripts with no questions.
vim:tw=78:ts=8:ft=help:norl:
[Vundle]:http://github.com/gmarik/vundle
[Pathogen]:http://github.com/tpope/vim-pathogen/
[Bundler]:http://github.com/wycats/bundler/
[Vim]:http://vim.org
[Git]:http://git-scm.com
[all available vim scripts]:http://vim-scripts.org/vim/scripts.html