2010-10-17 19:18:08 -04:00
|
|
|
## About
|
|
|
|
|
2011-05-24 20:17:28 -04:00
|
|
|
[Vundle] is short for **V**imb**undle** and is a [Vim] plugin manager.
|
2010-10-17 20:00:48 -04:00
|
|
|
|
2011-02-18 22:35:58 -05:00
|
|
|
## Quick start
|
2010-10-17 19:18:08 -04:00
|
|
|
|
2011-04-03 17:01:03 -04:00
|
|
|
1. Setup [Vundle]:
|
2010-10-17 19:18:08 -04:00
|
|
|
|
2011-05-25 22:39:35 -04:00
|
|
|
```console
|
|
|
|
$ git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
|
|
|
|
```
|
2010-10-17 20:46:30 -04:00
|
|
|
|
2011-04-03 17:01:03 -04:00
|
|
|
2. Configure bundles:
|
2010-10-19 00:15:44 -04:00
|
|
|
|
2011-05-25 22:39:35 -04:00
|
|
|
Sample `.vimrc`:
|
|
|
|
|
|
|
|
```vim
|
|
|
|
set nocompatible " be iMproved
|
|
|
|
filetype off " required!
|
|
|
|
|
|
|
|
set rtp+=~/.vim/bundle/vundle/
|
|
|
|
call vundle#rc()
|
|
|
|
|
|
|
|
" let Vundle manage Vundle
|
|
|
|
Bundle 'gmarik/vundle'
|
|
|
|
|
|
|
|
" My Bundles here:
|
|
|
|
"
|
|
|
|
" original repos on github
|
|
|
|
Bundle 'tpope/vim-fugitive'
|
|
|
|
Bundle 'lokaltog/vim-easymotion'
|
|
|
|
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-03-11 10:50:50 -05:00
|
|
|
|
2011-04-03 17:01:03 -04:00
|
|
|
3. Install configured bundles:
|
2010-10-17 19:18:08 -04:00
|
|
|
|
2011-04-03 17:01:03 -04:00
|
|
|
Launch `vim`, run `:BundleInstall`.
|
2011-04-15 19:41:18 -04:00
|
|
|
|
|
|
|
*Windows users* see [Vundle for Windows](https://github.com/gmarik/vundle/wiki/Vundle-for-Windows)
|
2010-10-17 20:00:48 -04:00
|
|
|
|
2011-02-10 23:23:51 -05:00
|
|
|
Installing requires [Git] and triggers [Git clone](http://gitref.org/creating/#clone) for each configured repo to `~/.vim/bundle/`.
|
2010-11-02 23:11:20 -04:00
|
|
|
|
2011-02-18 22:35:58 -05:00
|
|
|
## Why Vundle
|
2010-12-09 00:12:58 -05:00
|
|
|
|
2011-02-18 22:35:58 -05:00
|
|
|
[Vundle] allows to:
|
2010-11-23 17:31:59 -05:00
|
|
|
|
2011-02-18 22:35:58 -05:00
|
|
|
- keep track and configure your scripts right in `.vimrc`
|
2011-03-19 20:24:26 -04:00
|
|
|
- [install] configured scripts (aka bundle)
|
|
|
|
- [update] configured scripts
|
2011-04-15 19:59:49 -04:00
|
|
|
- [search] by name [all available vim scripts]
|
2011-03-19 20:24:26 -04:00
|
|
|
- [clean] unused scripts up
|
2011-03-19 21:46:35 -04:00
|
|
|
- run above actions in a *single keypress* with [interactive mode]
|
2010-11-03 00:51:55 -04:00
|
|
|
|
2011-03-19 21:12:26 -04:00
|
|
|
Also [Vundle]:
|
2010-11-26 13:37:16 -05:00
|
|
|
|
2011-02-18 22:35:58 -05:00
|
|
|
- manages runtime path of your installed scripts
|
|
|
|
- regenerates helptag atomatically
|
2010-11-23 17:31:59 -05:00
|
|
|
|
2011-02-18 22:35:58 -05:00
|
|
|
## Docs
|
2011-01-20 15:59:49 -05:00
|
|
|
|
2011-03-19 21:04:39 -04:00
|
|
|
see [`:h vundle`](vundle/blob/master/doc/vundle.txt#L1) vimdoc for more details.
|
2011-01-20 15:59:49 -05:00
|
|
|
|
2010-11-29 17:45:48 -05:00
|
|
|
## Examples
|
2010-11-23 17:31:59 -05:00
|
|
|
|
|
|
|
See [gmarik's vimrc](https://github.com/gmarik/vimfiles/blob/1f4f26d42f54443f1158e0009746a56b9a28b053/vimrc#L136) for working example.
|
2010-10-17 20:00:48 -04:00
|
|
|
|
2011-05-23 16:24:13 -04:00
|
|
|
If you have an interesting example, feel free to send a pull request with link to your config. Thx!
|
|
|
|
|
2011-05-01 12:23:19 -04:00
|
|
|
## FAQ
|
|
|
|
|
2011-05-06 21:05:12 -04:00
|
|
|
- **Q** Why am I asked for username/pass?
|
|
|
|
|
2011-05-24 20:17:28 -04:00
|
|
|
**A** This is the case of invalid name used with `Bundle`, which leads to attempt to clone nonexistent repo:
|
2011-05-01 12:23:19 -04:00
|
|
|
|
2011-05-25 22:37:16 -04:00
|
|
|
```console
|
|
|
|
git clone http://github.com/gmarik/non_existin_repo
|
|
|
|
Cloning into non_existin_repo...
|
|
|
|
Username:
|
|
|
|
Password:
|
|
|
|
fatal: Authentication failed
|
|
|
|
```
|
2011-05-01 12:23:19 -04:00
|
|
|
|
2011-05-19 00:02:53 -04:00
|
|
|
|
|
|
|
- **Q** My configuration is bundle dependant, so when I try to install plugins for the first time I get errors. How do I fix that?
|
|
|
|
|
|
|
|
**A** [Fix your Chicken or Egg dilemma](http://gmarik.info/blog/2011/05/17/chicken-or-egg-dilemma)
|
|
|
|
|
2011-04-03 17:01:03 -04:00
|
|
|
## Contributors
|
2011-04-15 19:41:18 -04:00
|
|
|
|
2011-04-24 13:18:34 -04:00
|
|
|
* [redlinesoftware](http://redlinesoftware.com) - for lending me 24" monitor!
|
2011-04-24 13:25:29 -04:00
|
|
|
* [Marc Jeanson](https://github.com/marcjeanson) - vim dude I always bug for help...;)
|
2011-04-03 17:01:03 -04:00
|
|
|
* [Brad Anderson](http://github.com/eco) (windows support)
|
|
|
|
* [Ryan W](http://github.com/rygwdn)
|
2011-04-25 00:17:03 -04:00
|
|
|
* [termac](http://github.com/termac)
|
2011-04-15 19:41:18 -04:00
|
|
|
* and others
|
|
|
|
|
|
|
|
*Thank you!*
|
2011-04-03 17:01:03 -04:00
|
|
|
|
2010-10-30 22:02:36 -04:00
|
|
|
## Inspiration and ideas from
|
2010-10-17 20:00:48 -04:00
|
|
|
|
2010-10-30 22:02:36 -04:00
|
|
|
* [pathogen]
|
|
|
|
* [bundler]
|
|
|
|
* [Scott Bronson](http://github.com/bronson)
|
2010-10-17 19:18:08 -04:00
|
|
|
|
2011-02-10 22:49:50 -05:00
|
|
|
## Also
|
|
|
|
|
2011-04-15 19:41:18 -04:00
|
|
|
* Vundle was developed and tested with [Vim] 7.3 on `OSX`, `Linux` and `Windows`
|
2011-02-10 22:49:50 -05:00
|
|
|
* Vundle tries to be as [KISS](http://en.wikipedia.org/wiki/KISS_principle) as possible
|
|
|
|
|
2010-10-17 19:18:08 -04:00
|
|
|
## TODO:
|
2010-11-02 23:11:20 -04:00
|
|
|
[Vundle] is a work in progress so any ideas/patches appreciated
|
2010-10-17 19:18:08 -04:00
|
|
|
|
2010-12-09 00:12:58 -05:00
|
|
|
* √ activate newly added bundles on .vimrc reload or after :BundleInstall
|
|
|
|
* √ use preview window for search results
|
2011-02-18 22:35:58 -05:00
|
|
|
* √ vim documentation
|
2011-05-09 23:49:53 -04:00
|
|
|
* √ put vundle to bundles/ too(will fix vundle help)
|
|
|
|
* √ tests
|
2010-11-26 13:37:16 -05:00
|
|
|
* improve error handling
|
2011-03-20 00:35:09 -04:00
|
|
|
* handle dependencies
|
2010-11-02 23:11:20 -04:00
|
|
|
* allow specify revision/version?
|
2011-05-24 20:17:28 -04:00
|
|
|
* search by description as well
|
|
|
|
* show description in search results
|
2010-12-09 00:12:58 -05:00
|
|
|
* instead sourcing .vimrc before installation come up with another solution
|
2010-11-02 23:11:20 -04:00
|
|
|
* make it rock!
|
2010-10-17 20:18:58 -04:00
|
|
|
|
|
|
|
[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
|
2010-11-27 17:03:37 -05:00
|
|
|
[all available vim scripts]:http://vim-scripts.org/vim/scripts.html
|
2011-03-19 20:24:26 -04:00
|
|
|
|
2011-05-23 17:59:01 -04:00
|
|
|
[install]:https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L110-124
|
2011-05-23 17:54:49 -04:00
|
|
|
[update]:https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L126-131
|
|
|
|
[search]:https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L133-155
|
2011-05-23 17:59:01 -04:00
|
|
|
[clean]:https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L157-169
|
|
|
|
[interactive mode]:https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L172-205
|