Vundle, the plug-in manager for Vim
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

150 lines
4.4 KiB

13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
  1. ## About
  2. [Vundle] is short for **V**imb**undle** and is a [Vim] plugin manager.
  3. ## Quick start
  4. 1. Setup [Vundle]:
  5. ```
  6. $ git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
  7. ```
  8. 2. Configure bundles:
  9. Sample `.vimrc`:
  10. ```vim
  11. set nocompatible " be iMproved
  12. filetype off " required!
  13. set rtp+=~/.vim/bundle/vundle/
  14. call vundle#rc()
  15. " let Vundle manage Vundle
  16. Bundle 'gmarik/vundle'
  17. " My Bundles here:
  18. "
  19. " original repos on github
  20. Bundle 'tpope/vim-fugitive'
  21. Bundle 'lokaltog/vim-easymotion'
  22. Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
  23. " vim-scripts repos
  24. Bundle 'L9'
  25. Bundle 'FuzzyFinder'
  26. Bundle 'rails.vim'
  27. " non github repos
  28. Bundle 'git://git.wincent.com/command-t.git'
  29. " ...
  30. filetype plugin indent on " required!
  31. " or
  32. " filetype plugin on " to not use the indentation settings set by plugins
  33. ```
  34. 3. Install configured bundles:
  35. Launch `vim`, run `:BundleInstall`.
  36. *Windows users* see [Vundle for Windows](https://github.com/gmarik/vundle/wiki/Vundle-for-Windows)
  37. Installing requires [Git] and triggers [Git clone](http://gitref.org/creating/#clone) for each configured repo to `~/.vim/bundle/`.
  38. ## Why Vundle
  39. [Vundle] allows to:
  40. - keep track and configure your scripts right in `.vimrc`
  41. - [install] configured scripts (aka bundle)
  42. - [update] configured scripts
  43. - [search] by name [all available vim scripts]
  44. - [clean] unused scripts up
  45. - run above actions in a *single keypress* with [interactive mode]
  46. Also [Vundle]:
  47. - manages runtime path of your installed scripts
  48. - regenerates helptag atomatically
  49. ## Docs
  50. see [`:h vundle`](vundle/blob/master/doc/vundle.txt#L1) vimdoc for more details.
  51. ## Examples
  52. See [gmarik's vimrc](https://github.com/gmarik/vimfiles/blob/1f4f26d42f54443f1158e0009746a56b9a28b053/vimrc#L136) for working example.
  53. If you have an interesting example, feel free to send a pull request with link to your config. Thx!
  54. ## FAQ
  55. - **Q** Why am I asked for username/pass?
  56. **A** This is the case of invalid name used with `Bundle`, which leads to attempt to clone nonexistent repo:
  57. ```
  58. git clone http://github.com/gmarik/non_existin_repo
  59. Cloning into non_existin_repo...
  60. Username:
  61. Password:
  62. fatal: Authentication failed
  63. ```
  64. - **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?
  65. **A** [Fix your Chicken or Egg dilemma](http://gmarik.info/blog/2011/05/17/chicken-or-egg-dilemma)
  66. ## Contributors
  67. * [redlinesoftware](http://redlinesoftware.com) - for lending me 24" monitor!
  68. * [Marc Jeanson](https://github.com/marcjeanson) - vim dude I always bug for help...;)
  69. * [Brad Anderson](http://github.com/eco) (windows support)
  70. * [Ryan W](http://github.com/rygwdn)
  71. * [termac](http://github.com/termac)
  72. * and others
  73. *Thank you!*
  74. ## Inspiration and ideas from
  75. * [pathogen]
  76. * [bundler]
  77. * [Scott Bronson](http://github.com/bronson)
  78. ## Also
  79. * Vundle was developed and tested with [Vim] 7.3 on `OSX`, `Linux` and `Windows`
  80. * Vundle tries to be as [KISS](http://en.wikipedia.org/wiki/KISS_principle) as possible
  81. ## TODO:
  82. [Vundle] is a work in progress so any ideas/patches appreciated
  83. * √ activate newly added bundles on .vimrc reload or after :BundleInstall
  84. * √ use preview window for search results
  85. * √ vim documentation
  86. * √ put vundle to bundles/ too(will fix vundle help)
  87. * √ tests
  88. * improve error handling
  89. * handle dependencies
  90. * allow specify revision/version?
  91. * search by description as well
  92. * show description in search results
  93. * instead sourcing .vimrc before installation come up with another solution
  94. * make it rock!
  95. [Vundle]:http://github.com/gmarik/vundle
  96. [Pathogen]:http://github.com/tpope/vim-pathogen/
  97. [Bundler]:http://github.com/wycats/bundler/
  98. [Vim]:http://vim.org
  99. [Git]:http://git-scm.com
  100. [all available vim scripts]:http://vim-scripts.org/vim/scripts.html
  101. [install]:https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L110-124
  102. [update]:https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L126-131
  103. [search]:https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L133-155
  104. [clean]:https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L157-169
  105. [interactive mode]:https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L172-205