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-03-20 00:27:03 -04: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: >
|
|
|
|
|
2011-03-20 00:27:03 -04:00
|
|
|
Bundle 'tpope/vim-fugitive'
|
2011-03-19 20:24:26 -04:00
|
|
|
|
|
|
|
equals full uri >
|
|
|
|
|
2011-03-20 00:27:03 -04:00
|
|
|
Bundle 'http://github.com/tpope/vim-fugitive.git'
|
2011-03-19 20:24:26 -04:00
|
|
|
|
|
|
|
|
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 >
|
|
|
|
|
2011-03-20 00:27:03 -04:00
|
|
|
: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: >
|
|
|
|
|
2011-03-20 00:27:03 -04:00
|
|
|
:Bundles!
|
2011-03-19 21:54:43 -04:00
|
|
|
|
|
|
|
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`.
|
|
|
|
|
2011-03-20 00:27:03 -04:00
|
|
|
*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-20 00:27:03 -04:00
|
|
|
*vundle-interactive*
|
2011-03-19 20:24:26 -04:00
|
|
|
5. INTERACTIVE MODE ~
|
2011-03-20 00:27:03 -04:00
|
|
|
|
2011-03-19 20:24:26 -04:00
|
|
|
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-20 00:27:03 -04:00
|
|
|
:Bundles! unite
|
2011-03-19 20:24:26 -04:00
|
|
|
|
2011-03-20 00:27:03 -04:00
|
|
|
searches for scripts matching 'unite' string and yelds the split window with
|
|
|
|
content: >
|
2011-03-19 20:24:26 -04:00
|
|
|
|
2011-03-20 00:27:03 -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'
|
2011-03-19 20:24:26 -04:00
|
|
|
|
2011-03-20 00:27:03 -04:00
|
|
|
As the first line(starting with `"Keymap:`) sows
|
|
|
|
certain Vundle commands can be triggered with single keypress, ie:
|
|
|
|
|
|
|
|
KEY | DESCRIPTION
|
|
|
|
----|-------------------------- >
|
|
|
|
i | run :BundleInstall with name taken from line cursor is positioned on
|
|
|
|
c | run :BundleCleanup
|
|
|
|
r | refine list; requires a string to refine list with
|
|
|
|
R | fetch fresh script list from server
|
|
|
|
|
|
|
|
So move cursor over line `Bundle 'unite.vim'` and press i key(install).
|
|
|
|
After unite.vim script is installed - `:Unite file` command should be
|
|
|
|
available to prove 'unite.vim' availability
|
|
|
|
|
|
|
|
NOTE: Interactive installation doesn't update your .vimrc configuration.
|
2011-03-19 22:58:17 -04:00
|
|
|
|
2011-02-19 12:21:22 -05:00
|
|
|
vim:tw=78:ts=8:ft=help:norl:
|