vundle/doc/vundle.txt

224 lines
6.9 KiB
Plaintext
Raw Normal View History

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-05-16 19:52:54 -04:00
4. Scripts |vundle-scripts|
2011-02-18 22:35:47 -05:00
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|
2011-08-23 17:42:12 -04:00
4.5. Listing scripts |vundle-scripts-list|
4.6. Cleanup |vundle-scripts-cleanup|
2011-03-19 20:24:26 -04:00
5. Interactive mode |vundle-interactive|
2011-08-23 17:51:08 -04:00
6. Key mappings |vundle-keymappings|
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-05-23 16:46:27 -04:00
2011-02-11 00:21:22 -05:00
- manages runtime path of your installed scripts
2011-03-20 00:40:18 -04:00
- regenerates helptags automatically
2011-02-11 00:21:22 -05:00
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:
2011-04-24 23:31:51 -04:00
Sample `.vimrc`: >
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/vundle.git/
call vundle#rc()
2011-05-16 20:44:47 -04:00
" let Vundle manage Vundle
Bundle 'gmarik/vundle'
2011-04-24 23:31:51 -04:00
" My Bundles here:
"
" original repos on github
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
2011-04-24 23:31:51 -04:00
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
" vim-scripts repos
Bundle 'L9'
Bundle 'FuzzyFinder'
Bundle 'rails.vim'
" non github repos
Bundle 'git://git.wincent.com/command-t.git'
" ...
filetype plugin indent on " required!
" or
" filetype plugin on " to not use the indentation settings set by plugins
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-20 02:15:40 -04:00
Vundle loves Github, that's why short uris can be used with commands: >
2011-03-19 20:24:26 -04:00
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-03-20 02:15:40 -04:00
NOTE: Vundle defaults to http:// protocol for the short URIs
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
2011-03-20 00:40:18 -04:00
enabled. Except special cases requiring compilation or pre-configuration.
2011-02-11 00:21:22 -05:00
2011-03-19 20:24:26 -04:00
BundleInstall allows to install scripts by name:>
2011-05-14 03:37:16 -04:00
:BundleInstall unite.vim
2011-03-19 20:24:26 -04:00
2011-03-20 00:40:18 -04:00
installs and activates unite.vim. You can use Tab to auto-complete known script names.
2011-03-19 20:24:26 -04:00
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 >
2011-03-20 00:40:18 -04:00
: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-20 00:40:18 -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-08-23 17:42:12 -04:00
4.5 LISTING BUNDLES ~
*vundle-scripts-list* *BundleList*
To quickly pull list of configured bundles use >
:BundleList
4.6 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-08-23 17:42:12 -04: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.
2011-03-20 02:15:40 -04:00
Interactive mode is available as result of :Bundles command. For instance, running: >
2011-03-19 20:24:26 -04:00
2011-03-20 00:27:03 -04:00
:Bundles! unite
2011-03-19 20:24:26 -04:00
2011-03-20 02:15:40 -04:00
triggers search for scripts matching 'unite' and yields a split window with
2011-03-20 00:27:03 -04:00
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-08-23 17:51:08 -04:00
As the first line(starting with `"Keymap:`) shows certain actions can be applied
to selected bundles (see |vundle-keymappings| for more details).
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.
*vundle-keymappings*
6. KEY MAPPINGS ~
2011-03-20 00:27:03 -04:00
KEY | DESCRIPTION
----|-------------------------- >
i | run :BundleInstall with name taken from line cursor is positioned on
2011-08-23 17:51:08 -04:00
I | same as i, but runs :BundleInstall! to update bundle
D | delete selected bundle( be careful not to remove local modifications)
2011-03-20 00:27:03 -04:00
c | run :BundleCleanup
r | refine list; requires a string to refine list with
R | fetch fresh script list from server
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: