2010-10-17 19:18:08 -04:00
|
|
|
## About
|
|
|
|
|
2011-02-10 23:23:51 -05:00
|
|
|
[Vundle] is a short cut 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-09 23:49:53 -04:00
|
|
|
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-04-23 03:37:15 -04:00
|
|
|
Sample `.vimrc`:
|
2010-10-19 00:26:53 -04:00
|
|
|
|
2011-04-23 03:36:48 -04:00
|
|
|
set nocompatible " be iMproved
|
2011-04-23 03:37:15 -04:00
|
|
|
filetype off " required!
|
2011-04-22 14:21:47 -04:00
|
|
|
|
2011-05-09 23:49:53 -04:00
|
|
|
set rtp+=~/.vim/bundle/vundle/
|
2010-11-02 23:11:20 -04:00
|
|
|
call vundle#rc()
|
2010-10-19 00:15:44 -04:00
|
|
|
|
2011-05-16 19:14:32 -04:00
|
|
|
" let Vundle manage Vundle
|
|
|
|
Bundle 'gmarik/vundle'
|
2011-05-09 23:49:53 -04:00
|
|
|
|
2011-04-22 14:21:47 -04:00
|
|
|
" My Bundles here:
|
|
|
|
"
|
2011-04-20 14:37:08 -04:00
|
|
|
" original repos on github
|
|
|
|
Bundle 'tpope/vim-fugitive'
|
|
|
|
Bundle 'lokaltog/vim-easymotion'
|
|
|
|
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
|
|
|
|
" vim-scripts repos
|
2011-04-17 11:49:21 -04:00
|
|
|
Bundle 'L9'
|
|
|
|
Bundle 'FuzzyFinder'
|
|
|
|
Bundle 'rails.vim'
|
2011-04-20 14:37:08 -04:00
|
|
|
" non github repos
|
2011-04-17 11:49:21 -04:00
|
|
|
Bundle 'git://git.wincent.com/command-t.git'
|
2010-12-09 00:12:58 -05:00
|
|
|
" ...
|
2010-10-17 19:18:08 -04:00
|
|
|
|
2011-04-23 03:37:15 -04:00
|
|
|
filetype plugin indent on " required!
|
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-05-17 10:27:52 -04:00
|
|
|
run [`:helptags ~/.vim/bundle/vundle/doc`](https://github.com/gmarik/vundle/issues/17)
|
2011-04-24 23:31:56 -04: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-01 12:23:19 -04:00
|
|
|
## FAQ
|
|
|
|
|
2011-05-06 21:05:12 -04:00
|
|
|
- **Q** Why am I asked for username/pass?
|
|
|
|
|
|
|
|
**A** This is the case of invalid name used with `Bundle`, which leads to attempt to clone nonexisting repo:
|
2011-05-01 12:23:19 -04:00
|
|
|
|
|
|
|
git clone http://github.com/gmarik/non_existin_repo
|
|
|
|
Cloning into non_existin_repo...
|
|
|
|
Username:
|
|
|
|
Password:
|
|
|
|
fatal: Authentication failed
|
|
|
|
|
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?
|
|
|
|
* search by description aswell
|
|
|
|
* show descrption 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-04-15 19:59:49 -04:00
|
|
|
[install]:https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L98-112
|
|
|
|
[update]:https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L114-119
|
|
|
|
[search]:https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L121-143
|
|
|
|
[clean]:https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L145-157
|
|
|
|
[interactive mode]:https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L160-193
|