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.

224 lines
6.8 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
12 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
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
12 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
12 years ago
13 years ago
13 years ago
12 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
12 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
12 years ago
12 years ago
12 years ago
13 years ago
12 years ago
13 years ago
13 years ago
  1. *vundle.txt* Vundle the plug-in manager for Vim. *vundle*
  2. CONTENTS ~
  3. *vundle-contents*
  4. ===========================================================================
  5. 1. About |vundle-about|
  6. 2. Why Vundle |vundle-why-vundle|
  7. 3. Quick start |vundle-quickstart|
  8. 4. Scripts |vundle-scripts|
  9. 4.1. Configure scripts |vundle-scripts-configure|
  10. 4.2. Installing scripts |vundle-scripts-install|
  11. 4.3. Updating scripts |vundle-scripts-update|
  12. 4.4. Searching scripts |vundle-scripts-search|
  13. 4.5. Listing scripts |vundle-scripts-list|
  14. 4.6. Cleanup |vundle-scripts-cleanup|
  15. 5. Interactive mode |vundle-interactive|
  16. 6. Key mappings |vundle-keymappings|
  17. ===========================================================================
  18. ABOUT *vundle-about*
  19. Vundle is a short cut for Vim bundle and is the Vim plug-in manager.
  20. 2. WHY VUNDLE ~
  21. *vundle-why-vundle*
  22. Vundle allows to:
  23. - keep track and configure your scripts right in `.vimrc`
  24. - install configured scripts (aka bundle)
  25. - update configured scripts
  26. - search [all available vim scripts] by name
  27. - clean up from unused scripts
  28. Also *Vundle* :
  29. - manages runtime path of your installed scripts
  30. - regenerates helptags automatically
  31. Vundle takes advantage of [vim-scripts.org](http://vim-scripts.org)
  32. in order to install/search [all available vim scripts]
  33. 3. QUICK START ~
  34. *vundle-quickstart*
  35. 1) Setup Vundle: >
  36. git clone http://github.com/gmarik/vundle.git ~/.vim/vundle.git
  37. 2) Configure bundles:
  38. Sample `.vimrc`: >
  39. set nocompatible " be iMproved
  40. filetype off " required!
  41. set rtp+=~/.vim/vundle.git/
  42. call vundle#rc()
  43. " let Vundle manage Vundle
  44. Bundle 'gmarik/vundle'
  45. " My Bundles here:
  46. "
  47. " original repos on github
  48. Bundle 'tpope/vim-fugitive'
  49. Bundle 'Lokaltog/vim-easymotion'
  50. Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
  51. " vim-scripts repos
  52. Bundle 'L9'
  53. Bundle 'FuzzyFinder'
  54. Bundle 'rails.vim'
  55. " non github repos
  56. Bundle 'git://git.wincent.com/command-t.git'
  57. " ...
  58. filetype plugin indent on " required!
  59. " or
  60. " filetype plugin on " to not use the indentation settings set by plugins
  61. 3) Install configured bundles:
  62. Launch `vim`, run >
  63. :BundleInstall
  64. Installing requires [Git] and triggers [Git clone](http://gitref.org/creating/#clone) for
  65. each configured repo to `~/.vim/bundle/`.
  66. 4. SCRIPTS ~
  67. *vundle-scripts*
  68. 4.1 CONFIGURE SCRIPTS ~
  69. *vundle-scripts-configure* *Bundle*
  70. Before installing scripts they need to be configured. It's done using `Bundle`
  71. command in `.vimrc`: >
  72. Bundle 'git_repo_uri' " 'git_repo_uri' should be a valid uri to git repository
  73. or >
  74. Bundle 'script_name' " 'script-name' should be an official script name (see |vundle-scripts-search| )
  75. Vundle loves Github, that's why short uris can be used with commands: >
  76. Bundle 'tpope/vim-fugitive'
  77. equals full uri >
  78. Bundle 'http://github.com/tpope/vim-fugitive.git'
  79. NOTE: Vundle defaults to http:// protocol for the short URIs
  80. 4.2 INSTALL SCRIPTS ~
  81. *vundle-scripts-install* *BundleInstall*
  82. run >
  83. :BundleInstall
  84. installs configured scripts. Newly installed scripts will be automatically
  85. enabled. Except special cases requiring compilation or pre-configuration.
  86. BundleInstall allows to install scripts by name:>
  87. :BundleInstall unite.vim
  88. installs and activates unite.vim. You can use Tab to auto-complete known script names.
  89. NOTE: installation, as just described, doesn't automatically configure scripts;
  90. you have to configure them manually.
  91. 4.3 UPDATE SCRIPTS ~
  92. *vundle-scripts-update* *BundleInstall!*
  93. run >
  94. :BundleInstall! " NOTE: bang(!)
  95. installs or updates configured scripts.
  96. 4.4 SEARCHING ~
  97. *vundle-scripts-search* *BundleSearch*
  98. run >
  99. :BundleSearch foo
  100. lists bundles matching 'foo' in new a new split window, ie:
  101. >
  102. Bundle "VimFootnotes"
  103. Bundle "foo.vim"
  104. >
  105. and >
  106. :BundleSearch! foo
  107. refreshes script list before performing actual search.
  108. If command is run without argument: >
  109. :BundleSearch!
  110. it will display all known scripts
  111. Searching requires [`curl`](http://curl.haxx.se/)
  112. 4.5 LISTING BUNDLES ~
  113. *vundle-scripts-list* *BundleList*
  114. To quickly pull list of configured bundles use >
  115. :BundleList
  116. 4.6 CLEANING UP ~
  117. *vundle-scripts-cleanup* *BundleClean*
  118. run >
  119. :BundleClean
  120. requires confirmation before removal of unused script-dirs from your `.vim/bundle`.
  121. *BundleClean!*
  122. >
  123. :BundleClean!
  124. removes unused scripts with no questions.
  125. *vundle-interactive*
  126. 5. INTERACTIVE MODE ~
  127. Vundle provides simple interactive mode to help you explore new scripts easily.
  128. Interactive mode is available as result of any commands that display list of
  129. bundles. For instance, running: >
  130. :BundleSearch! unite
  131. triggers search for scripts matching 'unite' and yields a split window with
  132. content: >
  133. "Keymap: i - Install bundle; c - Cleanup; r - Refine list; R - Reload list
  134. "Search results for: unite
  135. Bundle 'unite.vim'
  136. Bundle 'unite-yarm'
  137. Bundle 'unite-gem'
  138. Bundle 'unite-locate'
  139. Bundle 'unite-font'
  140. Bundle 'unite-colorscheme'
  141. As the first line(starting with `"Keymap:`) shows, certain actions may be applied
  142. to selected bundles . Move cursor over line `Bundle 'unite.vim'` and press i
  143. key(install, see |vundle-keymappings| for more details).
  144. After unite.vim is installed - `:Unite file` command should be
  145. available to prove 'unite.vim' availability.
  146. NOTE: Interactive installation doesn't update your .vimrc configuration.
  147. *vundle-keymappings*
  148. 6. KEY MAPPINGS ~
  149. KEY | DESCRIPTION
  150. ----|-------------------------- >
  151. i | run :BundleInstall with name taken from line cursor is positioned on
  152. I | same as i, but runs :BundleInstall! to update bundle
  153. D | delete selected bundle( be careful not to remove local modifications)
  154. c | run :BundleClean
  155. s | run :BundleSearch
  156. R | fetch fresh script list from server
  157. vim:tw=78:ts=8:ft=help:norl: