2011-02-18 22:35:47 -05:00
|
|
|
*vundle.txt* Vundle the plug-in manager for Vim. *vundle*
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
CONTENTS ~
|
|
|
|
*vundle-contents*
|
|
|
|
===========================================================================
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
1. About |vundle-about|
|
|
|
|
2. Why Vundle |vundle-why-vundle|
|
2011-02-18 22:50:54 -05:00
|
|
|
3. Quick start |vundle-quickstart|
|
2011-02-18 22:35:47 -05:00
|
|
|
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|
|
2011-03-19 20:24:26 -04:00
|
|
|
5. Interactive mode |vundle-interactive|
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
===========================================================================
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
ABOUT *vundle-about*
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
Vundle is a short cut for Vim bundle and is the Vim plug-in manager.
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
2. WHY VUNDLE ~
|
|
|
|
*vundle-why-vundle*
|
|
|
|
Vundle allows to:
|
2011-02-11 00:21:22 -05:00
|
|
|
|
|
|
|
- keep track and configure your scripts right in `.vimrc`
|
|
|
|
- install configured scripts (aka bundle)
|
2011-02-18 22:35:47 -05:00
|
|
|
- update configured scripts
|
2011-02-11 00:21:22 -05:00
|
|
|
- search [all available vim scripts] by name
|
2011-02-18 22:35:47 -05:00
|
|
|
- clean up from unused scripts
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-03-19 20:24:26 -04:00
|
|
|
Also *Vundle* :
|
2011-02-11 00:21:22 -05:00
|
|
|
|
|
|
|
- manages runtime path of your installed scripts
|
|
|
|
- regenerates helptag atomatically
|
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
Vundle takes advantage of [vim-scripts.org](http://vim-scripts.org)
|
2011-02-11 00:21:22 -05:00
|
|
|
in order to install/search [all available vim scripts]
|
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
3. QUICK START ~
|
|
|
|
*vundle-quickstart*
|
|
|
|
1) Setup Vundle: >
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-03-19 20:24:26 -04:00
|
|
|
git clone http://github.com/gmarik/vundle.git ~/.vim/vundle.git
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
2) Configure bundles:
|
|
|
|
Append to your `~/.vimrc`: >
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-03-19 20:24:26 -04:00
|
|
|
set rtp+=~/.vim/vundle.git/
|
|
|
|
call vundle#rc()
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-03-19 20:24:26 -04:00
|
|
|
" Bundles:
|
|
|
|
Bundle "L9"
|
|
|
|
Bundle "FuzzyFinder"
|
|
|
|
Bundle "rails.vim"
|
|
|
|
Bundle "ack.vim"
|
|
|
|
Bundle "git://git.wincent.com/command-t.git"
|
|
|
|
" ...
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-03-19 20:24:26 -04:00
|
|
|
" NOTE: if some plugins fail to work, put the config *between* lines:
|
|
|
|
" filetype off
|
|
|
|
" "Bundles here
|
|
|
|
" filetype plugin indent on
|
2011-03-19 19:22:56 -04:00
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
3) Install configured bundles:
|
|
|
|
|
|
|
|
Launch `vim`, run >
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
:BundleInstall
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
Installing requires [Git] and triggers [Git clone](http://gitref.org/creating/#clone) for
|
|
|
|
each configured repo to `~/.vim/bundle/`.
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
4. SCRIPTS ~
|
|
|
|
*vundle-scripts*
|
|
|
|
4.1 CONFIGURE SCRIPTS ~
|
2011-02-19 12:21:22 -05:00
|
|
|
*vundle-scripts-configure* *Bundle*
|
2011-02-18 22:35:47 -05:00
|
|
|
Before installing scripts they need to be configured. It's done using `Bundle`
|
|
|
|
command in `.vimrc`: >
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
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| )
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-03-19 20:24:26 -04:00
|
|
|
Vundle loves Github, that's why short uris can be used to configure bundles: >
|
|
|
|
|
|
|
|
Bundle 'tpope/fugitive'
|
|
|
|
|
|
|
|
equals full uri >
|
|
|
|
|
|
|
|
Bundle 'http://github.com/tpope/fugitive.git'
|
|
|
|
|
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
4.2 INSTALL SCRIPTS ~
|
2011-02-19 12:21:22 -05:00
|
|
|
*vundle-scripts-install* *BundleInstall*
|
2011-02-18 22:35:47 -05:00
|
|
|
run >
|
|
|
|
:BundleInstall
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
installs configured scripts. Newly installed scripts will be automatically
|
|
|
|
enabled. Except special cases requiring compilation or preconfiguration.
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-03-19 20:24:26 -04:00
|
|
|
BundleInstall allows to install scripts by name:>
|
|
|
|
|
|
|
|
:BundleIntall unite.vim
|
|
|
|
|
|
|
|
installs and activates unite.vim. You can use Tab to autocomplete known script names.
|
|
|
|
NOTE: installation, as just described, doesn't automatically configure scripts;
|
|
|
|
you have to configure them manually.
|
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
4.3 UPDATE SCRIPTS ~
|
2011-02-19 12:21:22 -05:00
|
|
|
*vundle-scripts-update* *BundleInstall!*
|
2011-02-18 22:35:47 -05:00
|
|
|
run >
|
|
|
|
:BundleInstall! " note bang(!)
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
installs or updates configured scripts.
|
|
|
|
|
|
|
|
4.4 SEARCHING ~
|
2011-02-19 12:21:22 -05:00
|
|
|
*vundle-scripts-search* *BundleSearch*
|
2011-02-18 22:35:47 -05:00
|
|
|
run >
|
2011-03-19 21:17:51 -04:00
|
|
|
:Bundles foo " note plural Bundles not singular Bundle
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-03-19 21:17:51 -04:00
|
|
|
lists bundles matching 'foo' in new a new split window, ie:
|
2011-02-18 22:35:47 -05:00
|
|
|
>
|
2011-02-11 00:21:22 -05:00
|
|
|
Bundle "VimFootnotes"
|
|
|
|
Bundle "foo.vim"
|
2011-02-18 22:35:47 -05:00
|
|
|
>
|
2011-03-19 20:24:26 -04:00
|
|
|
and >
|
|
|
|
|
|
|
|
:Bundles! foo
|
2011-02-11 00:21:22 -05:00
|
|
|
|
|
|
|
refreshes script list before performing actual search.
|
|
|
|
|
2011-03-19 21:54:43 -04:00
|
|
|
If command is run without argument: >
|
|
|
|
|
|
|
|
:Bundles!
|
|
|
|
|
|
|
|
it will display all known scripts
|
2011-03-19 20:24:26 -04:00
|
|
|
|
2011-02-11 00:21:22 -05:00
|
|
|
Searching requires [`curl`](http://curl.haxx.se/)
|
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
4.5 CLEANING UP ~
|
2011-02-19 12:21:22 -05:00
|
|
|
*vundle-scripts-cleanup* *BundleClean*
|
2011-02-18 22:35:47 -05:00
|
|
|
run >
|
2011-03-19 20:24:26 -04:00
|
|
|
|
2011-02-11 00:21:22 -05:00
|
|
|
:BundleClean
|
|
|
|
|
2011-03-19 20:24:26 -04:00
|
|
|
requires confirmation before removal of unused script-dirs from your `.vim/bundle`.
|
|
|
|
|
|
|
|
*BundleClean!* >
|
2011-02-18 22:35:47 -05:00
|
|
|
:BundleClean!
|
2011-02-11 00:21:22 -05:00
|
|
|
|
2011-02-18 22:35:47 -05:00
|
|
|
removes unused scripts with no questions.
|
2011-02-19 12:21:22 -05:00
|
|
|
|
2011-03-19 20:24:26 -04:00
|
|
|
5. INTERACTIVE MODE ~
|
|
|
|
*vundle-interactive*
|
|
|
|
Vundle provides simple interactive mode to help you explore new scripts easily.
|
|
|
|
Interactive mode is available as result of :Bundles command. For instance running >
|
|
|
|
|
2011-03-19 21:52:13 -04:00
|
|
|
:Bundles! unite
|
2011-03-19 20:24:26 -04:00
|
|
|
|
2011-03-19 21:17:51 -04:00
|
|
|
searches for scripts matching 'unite' string and yelds the result:
|
2011-03-19 20:24:26 -04:00
|
|
|
|
|
|
|
"Keymap: i - Install bundle; c - Cleanup; r - Refine list; R - Reload list
|
|
|
|
"Search results for: unite
|
|
|
|
Bundle 'unite.vim'
|
|
|
|
Bundle 'unite-yarm'
|
|
|
|
Bundle 'unite-gem'
|
|
|
|
Bundle 'unite-locate'
|
|
|
|
Bundle 'unite-font'
|
|
|
|
Bundle 'unite-colorscheme'
|
|
|
|
|
|
|
|
allows running certain commands with single keypress:
|
|
|
|
>
|
|
|
|
*i* - runs BundleInstall with name taken from line cursor is positioned on
|
|
|
|
*c* - runs BundleCleanup
|
2011-03-19 21:54:43 -04:00
|
|
|
*r* - alows to refine list; requires a string to refine list with
|
2011-03-19 20:24:26 -04:00
|
|
|
*R* - fetches fresh script list from server
|
|
|
|
|
2011-02-19 12:21:22 -05:00
|
|
|
vim:tw=78:ts=8:ft=help:norl:
|