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.

195 lines
6.0 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
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. *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. Scrips |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. Cleanup |vundle-scripts-cleanup|
  14. 5. Interactive mode |vundle-interactive|
  15. ===========================================================================
  16. ABOUT *vundle-about*
  17. Vundle is a short cut for Vim bundle and is the Vim plug-in manager.
  18. 2. WHY VUNDLE ~
  19. *vundle-why-vundle*
  20. Vundle allows to:
  21. - keep track and configure your scripts right in `.vimrc`
  22. - install configured scripts (aka bundle)
  23. - update configured scripts
  24. - search [all available vim scripts] by name
  25. - clean up from unused scripts
  26. Also *Vundle* :
  27. - manages runtime path of your installed scripts
  28. - regenerates helptags automatically
  29. Vundle takes advantage of [vim-scripts.org](http://vim-scripts.org)
  30. in order to install/search [all available vim scripts]
  31. 3. QUICK START ~
  32. *vundle-quickstart*
  33. 1) Setup Vundle: >
  34. git clone http://github.com/gmarik/vundle.git ~/.vim/vundle.git
  35. 2) Configure bundles:
  36. Append to your `~/.vimrc`: >
  37. set rtp+=~/.vim/vundle.git/
  38. call vundle#rc()
  39. " Bundles:
  40. Bundle "L9"
  41. Bundle "FuzzyFinder"
  42. Bundle "rails.vim"
  43. Bundle "ack.vim"
  44. Bundle "git://git.wincent.com/command-t.git"
  45. " ...
  46. " NOTE: if some plug-ins fail to work, put the config *between* lines:
  47. " filetype off
  48. " "Bundles here
  49. " filetype plugin indent on
  50. 3) Install configured bundles:
  51. Launch `vim`, run >
  52. :BundleInstall
  53. Installing requires [Git] and triggers [Git clone](http://gitref.org/creating/#clone) for
  54. each configured repo to `~/.vim/bundle/`.
  55. 4. SCRIPTS ~
  56. *vundle-scripts*
  57. 4.1 CONFIGURE SCRIPTS ~
  58. *vundle-scripts-configure* *Bundle*
  59. Before installing scripts they need to be configured. It's done using `Bundle`
  60. command in `.vimrc`: >
  61. Bundle 'git_repo_uri' " 'git_repo_uri' should be a valid uri to git repository
  62. or >
  63. Bundle 'script_name' " 'script-name' should be an official script name (see |vundle-scripts-search| )
  64. Vundle loves Github, that's why short uris can be used with commands: >
  65. Bundle 'tpope/vim-fugitive'
  66. equals full uri >
  67. Bundle 'http://github.com/tpope/vim-fugitive.git'
  68. NOTE: Vundle defaults to http:// protocol for the short URIs
  69. 4.2 INSTALL SCRIPTS ~
  70. *vundle-scripts-install* *BundleInstall*
  71. run >
  72. :BundleInstall
  73. installs configured scripts. Newly installed scripts will be automatically
  74. enabled. Except special cases requiring compilation or pre-configuration.
  75. BundleInstall allows to install scripts by name:>
  76. :BundleIntall unite.vim
  77. installs and activates unite.vim. You can use Tab to auto-complete known script names.
  78. NOTE: installation, as just described, doesn't automatically configure scripts;
  79. you have to configure them manually.
  80. 4.3 UPDATE SCRIPTS ~
  81. *vundle-scripts-update* *BundleInstall!*
  82. run >
  83. :BundleInstall! " NOTE: bang(!)
  84. installs or updates configured scripts.
  85. 4.4 SEARCHING ~
  86. *vundle-scripts-search* *BundleSearch*
  87. run >
  88. :Bundles foo " NOTE: plural Bundles not singular Bundle
  89. lists bundles matching 'foo' in new a new split window, ie:
  90. >
  91. Bundle "VimFootnotes"
  92. Bundle "foo.vim"
  93. >
  94. and >
  95. :Bundles! foo
  96. refreshes script list before performing actual search.
  97. If command is run without argument: >
  98. :Bundles!
  99. it will display all known scripts
  100. Searching requires [`curl`](http://curl.haxx.se/)
  101. 4.5 CLEANING UP ~
  102. *vundle-scripts-cleanup* *BundleClean*
  103. run >
  104. :BundleClean
  105. requires confirmation before removal of unused script-dirs from your `.vim/bundle`.
  106. *BundleClean!*
  107. >
  108. :BundleClean!
  109. removes unused scripts with no questions.
  110. *vundle-interactive*
  111. 5. INTERACTIVE MODE ~
  112. Vundle provides simple interactive mode to help you explore new scripts easily.
  113. Interactive mode is available as result of :Bundles command. For instance, running: >
  114. :Bundles! unite
  115. triggers search for scripts matching 'unite' and yields a split window with
  116. content: >
  117. "Keymap: i - Install bundle; c - Cleanup; r - Refine list; R - Reload list
  118. "Search results for: unite
  119. Bundle 'unite.vim'
  120. Bundle 'unite-yarm'
  121. Bundle 'unite-gem'
  122. Bundle 'unite-locate'
  123. Bundle 'unite-font'
  124. Bundle 'unite-colorscheme'
  125. As the first line(starting with `"Keymap:`) shows
  126. certain Vundle commands can be triggered with single keypress, ie:
  127. KEY | DESCRIPTION
  128. ----|-------------------------- >
  129. i | run :BundleInstall with name taken from line cursor is positioned on
  130. c | run :BundleCleanup
  131. r | refine list; requires a string to refine list with
  132. R | fetch fresh script list from server
  133. Now move cursor over line `Bundle 'unite.vim'` and press i key(install).
  134. After unite.vim script is installed - `:Unite file` command should be
  135. available to prove 'unite.vim' availability.
  136. NOTE: Interactive installation doesn't update your .vimrc configuration.
  137. vim:tw=78:ts=8:ft=help:norl: