/vundle.git/doc/vundle.txt

https://bitbucket.org/s73v3r/vim · Plain Text · 202 lines · 142 code · 60 blank · 0 comment · 0 complexity · e66c0e7f5dc92d6545efab653b6d2a5b MD5 · raw file

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