Simple image host.
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.

vundle.txt 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. *vundle.txt* Vundle, a plug-in manager for Vim. *vundle*
  2. VUNDLE MANUAL
  3. 1. About Vundle |vundle-about|
  4. 2. Quick Start |vundle-quickstart|
  5. 3. Plugins |vundle-plugins|
  6. 3.1. Configuring Plugins |vundle-plugins-configure|
  7. 3.2. Supported URIs |vundle-plugins-uris|
  8. 3.3. Installing Plugins |vundle-plugins-install|
  9. 3.4. Updating Plugins |vundle-plugins-update|
  10. 3.5. Searching Plugins |vundle-plugins-search|
  11. 3.6. Listing Plugins |vundle-plugins-list|
  12. 3.7. Cleaning Up |vundle-plugins-cleanup|
  13. 4. Interactive Mode |vundle-interactive|
  14. 5. Key Mappings |vundle-keymappings|
  15. 6. Options |vundle-options|
  16. 7. Plugin Interface Change |vundle-interface-change|
  17. =============================================================================
  18. 1. ABOUT VUNDLE ~
  19. *vundle-about*
  20. Vundle is short for Vim bundle and is a Vim plugin manager.
  21. Vundle allows you to...
  22. - keep track of and configure your scripts right in the `.vimrc`
  23. - install configured scripts (a.k.a. bundle)
  24. - update configured scripts
  25. - search by name all available Vim scripts
  26. - clean unused scripts up
  27. - run the above actions in a single keypress with interactive mode
  28. Vundle automatically...
  29. - manages the runtime path of your installed scripts
  30. - regenerates help tags after installing and updating
  31. Vundle's search uses http://vim-scripts.org to provide a list of all
  32. available Vim scripts.
  33. Vundle is undergoing an interface change, see |vundle-interface-change| for
  34. more information.
  35. =============================================================================
  36. 2. QUICK START ~
  37. *vundle-quickstart*
  38. 1. Introduction:
  39. Installation requires `Git` and triggers git clone for each configured
  40. repository to `~/.vim/bundle/` by default. Curl is required for search.
  41. *vundle-windows*
  42. If you are using Windows, see instructions on the Wiki
  43. https://github.com/gmarik/Vundle.vim/wiki/Vundle-for-Windows.
  44. *vundle-faq*
  45. If you run into any issues, please consult the FAQ at
  46. https://github.com/gmarik/Vundle.vim/wiki
  47. 2. Setup Vundle:
  48. >
  49. git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
  50. <
  51. 3. Configure bundles:
  52. Put this at the top of your `.vimrc` to use Vundle. Remove bundles you
  53. don't need, they are for illustration purposes.
  54. >
  55. set nocompatible " be iMproved, required
  56. filetype off " required
  57. " set the runtime path to include Vundle and initialize
  58. set rtp+=~/.vim/bundle/Vundle.vim
  59. call vundle#begin()
  60. " alternatively, pass a path where Vundle should install plugins
  61. "call vundle#begin('~/some/path/here')
  62. " let Vundle manage Vundle, required
  63. Plugin 'gmarik/Vundle.vim'
  64. " The following are examples of different formats supported.
  65. " Keep Plugin commands between vundle#begin/end.
  66. " plugin on GitHub repo
  67. Plugin 'tpope/vim-fugitive'
  68. " plugin from http://vim-scripts.org/vim/scripts.html
  69. Plugin 'L9'
  70. " Git plugin not hosted on GitHub
  71. Plugin 'git://git.wincent.com/command-t.git'
  72. " git repos on your local machine (i.e. when working on your own plugin)
  73. Plugin 'file:///home/gmarik/path/to/plugin'
  74. " The sparkup vim script is in a subdirectory of this repo called vim.
  75. " Pass the path to set the runtimepath properly.
  76. Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
  77. " Avoid a name conflict with L9
  78. Plugin 'user/L9', {'name': 'newL9'}
  79. " All of your Plugins must be added before the following line
  80. call vundle#end() " required
  81. filetype plugin indent on " required
  82. " To ignore plugin indent changes, instead use:
  83. "filetype plugin on
  84. "
  85. " Brief help
  86. " :PluginList - list configured plugins
  87. " :PluginInstall(!) - install (update) plugins
  88. " :PluginSearch(!) foo - search (or refresh cache first) for foo
  89. " :PluginClean(!) - confirm (or auto-approve) removal of unused plugins
  90. "
  91. " see :h vundle for more details or wiki for FAQ
  92. " Put your non-Plugin stuff after this line
  93. 4. Install configured bundles:
  94. Launch vim and run
  95. >
  96. :PluginInstall
  97. <
  98. To install from command line:
  99. >
  100. vim +PluginInstall +qall
  101. =============================================================================
  102. 3. PLUGINS ~
  103. *vundle-plugins*
  104. 3.1 CONFIGURING PLUGINS ~
  105. *vundle-plugins-configure* *:Plugin*
  106. Vundle tracks what plugins you want configured by the `Plugin` commands in your
  107. `.vimrc`. Each `Plugin` command tells Vundle to activate the script on startup
  108. adding it to your |runtimepath|. Commenting out or removing the line will
  109. disable the `Plugin`.
  110. Each `Plugin` command takes a URI pointing to the script. No comments should
  111. follow on the same line as the command. Example:
  112. >
  113. Plugin 'git_URI'
  114. The `Plugin` command can optionally take a second argument after the URI. It
  115. has to be a dictionary, separated from the URI by a comma. Each key-value pair
  116. in the dictionary is a configuration option.
  117. The following per-script configuration options are available.
  118. The 'rtp' option
  119. ----------------
  120. Specifies a directory inside the repository (relative path from the root of
  121. the repository) where the vim plugin resides. It determines the path that will
  122. be added to the |runtimepath|.
  123. For example:
  124. >
  125. Plugin 'git_URI', {'rtp': 'some/subdir/'}
  126. This can be used with git repositories that put the vim plugin inside a
  127. subdirectory.
  128. The 'name' option
  129. -----------------
  130. The name of the directory that will hold the local clone of the configured
  131. script.
  132. For example:
  133. >
  134. Plugin 'git_URI', {'name': 'newPluginName'}
  135. This can be used to prevent name collisions between plugins that Vundle would
  136. otherwise try to clone into the same directory. It also provides an additional
  137. level of customisation.
  138. The 'pinned' option
  139. -------------------
  140. A flag that, when set to a value of 1, tells Vundle not to perform any git
  141. operations on the plugin, while still adding the existing plugin under the
  142. `bundles` directories to the |runtimepath|.
  143. For example:
  144. >
  145. Plugin 'mylocalplugin', {'pinned': 1}
  146. This allows the users to include, with Vundle, plugins tracked with version
  147. control systems other than git, but the user is responsible for cloning and
  148. keeping up to date. It also allows the users to stay in the current version of
  149. a plugin that might have previously been updated by Vundle.
  150. Please note that the URI will be treated the same as for any other plugins, so
  151. only the last part of it will be added to the |runtimepath|. The user is
  152. advised to use this flag only with single word URIs to avoid confusion.
  153. 3.2 SUPPORTED URIS ~
  154. *vundle-plugins-uris*
  155. `Vundle` integrates very well with both GitHub and vim-scripts.org
  156. (http://vim-scripts.org/vim/scripts.html) allowing short URIs. It also allows
  157. the use of any URI `git` recognizes. In all of the following cases (except
  158. local) the 'https' protocol is used, see Vundle's options to override this.
  159. More information on `git`'s protocols can be found at:
  160. http://git-scm.com/book/ch4-1.html
  161. GitHub
  162. ------
  163. GitHub is used when a user/repo is passed to `Plugin`.
  164. >
  165. Plugin 'gmarik/Vundle.vim' => https://github.com/gmarik/Vundle.vim
  166. Vim Scripts
  167. -----------
  168. Any single word without a slash '/' is assumed to be from Vim Scripts.
  169. >
  170. Plugin 'ctrlp.vim' => https://github.com/vim-scripts/ctrlp.vim
  171. Other Git URIs
  172. --------------
  173. No modification is performed on valid URIs that point outside the above
  174. URLs.
  175. >
  176. Plugin 'git://git.wincent.com/command-t.git'
  177. Local Plugins
  178. -------------
  179. The git protocol supports local installation using the 'file://' protocol.
  180. This is handy when developing plugins locally. Follow the protocol with an
  181. absolute path to the script directory.
  182. >
  183. Plugin 'file:///path/from/root/to/plugin'
  184. 3.3 INSTALLING PLUGINS ~
  185. *vundle-plugins-install* *:PluginInstall*
  186. >
  187. :PluginInstall
  188. Will install all plugins configured in your `.vimrc`. Newly installed
  189. plugins will be automatically enabled. Some plugins may require extra steps
  190. such as compilation or external programs, refer to their documentation.
  191. PluginInstall allows installation of plugins by name:
  192. >
  193. :PluginInstall unite.vim
  194. Installs and activates unite.vim. You can use Tab to auto-complete known
  195. script names. Note that the installation just described isn't permanent. To
  196. finish, you must put `Plugin 'unite.vim'` at the appropriate place in your
  197. `.vimrc` to tell Vundle to load the plugin at startup.
  198. After installing plugins press 'l' (lowercase 'L') to see the log of commands
  199. if any errors occurred.
  200. 3.4 UPDATING PLUGINS ~
  201. *vundle-plugins-update* *:PluginUpdate* *:PluginInstall!*
  202. >
  203. :PluginInstall! " NOTE: bang(!)
  204. or >
  205. :PluginUpdate
  206. Installs or updates the configured plugins. Press 'u' after updates complete
  207. to see the change log of all updated bundles. Press 'l' (lowercase 'L') to
  208. see the log of commands if any errors occurred.
  209. 3.5 SEARCHING PLUGINS ~
  210. *vundle-plugins-search* *:PluginSearch*
  211. >
  212. :PluginSearch
  213. Search requires that `curl` be available on the system. The command searches
  214. Vim Scripts (http://vim-scripts.org/vim/scripts.html) for matching
  215. plugins. Results display in a new split window. For example:
  216. >
  217. PluginSearch foo
  218. displays:
  219. >
  220. "Search results for: foo
  221. Plugin 'MarkdownFootnotes'
  222. Plugin 'VimFootnotes'
  223. Plugin 'foo.vim'
  224. <
  225. *:PluginSearch!*
  226. Alternatively, you can refresh the script list before searching by adding a
  227. bang to the command.
  228. >
  229. :PluginSearch! foo
  230. If the command is run without argument:
  231. >
  232. :PluginSearch!
  233. it will display all known plugins in the new split.
  234. 3.6 LISTING BUNDLES ~
  235. *vundle-plugins-list* *:PluginList*
  236. >
  237. :PluginList
  238. Displays a list of installed bundles.
  239. 3.7 CLEANING UP ~
  240. *vundle-plugins-cleanup* *:PluginClean*
  241. >
  242. :PluginClean
  243. Requests confirmation for the removal of all plugins no longered configured
  244. in your `.vimrc` but present in your bundle installation directory
  245. (default: `.vim/bundle/`).
  246. *:PluginClean!*
  247. >
  248. :PluginClean!
  249. Automatically confirm removal of unused bundles.
  250. =============================================================================
  251. 4. INTERACTIVE MODE ~
  252. *vundle-interactive*
  253. Vundle provides a simple interactive mode to help you explore new plugins
  254. easily. Interactive mode is available after any command that lists `Plugins`
  255. such as PluginSearch, PluginList or Plugins. For instance:
  256. >
  257. :PluginSearch! unite
  258. Searches for plugins matching 'unite' and yields a split window with:
  259. >
  260. "Keymap: i - Install bundle; c - Cleanup; s - Search; R - Reload list
  261. "Search results for: unite
  262. Plugin 'unite-scriptenames'
  263. Plugin 'unite.vim'
  264. Plugin 'unite-yarm'
  265. Plugin 'unite-gem'
  266. Plugin 'unite-locate'
  267. Plugin 'unite-font'
  268. Plugin 'unite-colorscheme'
  269. To install a bundle, move your cursor to the Plugin of interest and then
  270. select a command. To install 'unite.vim' put your cursor on the line and
  271. then push `i`. For a more complete list see |vundle-keymappings|. After
  272. unite.vim is installed the `:Unite file` command should be available.
  273. Note: Interactive installation doesn't update your `.vimrc`.
  274. =============================================================================
  275. 5. KEY MAPPINGS ~
  276. *vundle-keymappings*
  277. KEY | DESCRIPTION
  278. ----|-------------------------- >
  279. i | run :PluginInstall with name taken from line cursor is positioned on
  280. I | same as i, but runs :PluginInstall! to update bundle
  281. D | delete selected bundle (be careful not to remove local modifications)
  282. c | run :PluginClean
  283. s | run :PluginSearch
  284. R | fetch fresh script list from server
  285. =============================================================================
  286. 6. OPTIONS ~
  287. *vundle-options*
  288. >
  289. let g:vundle_default_git_proto = 'git'
  290. <
  291. This option makes Vundle use `git` instead of `https` when building
  292. absolute URIs. For example:
  293. >
  294. Plugin 'sjl/gundo.vim' -> git@github.com:sjl/gundo.git
  295. =============================================================================
  296. 7. VUNDLE INTERFACE CHANGE ~
  297. *vundle-interface-change* *:Bundle* *:BundleInstall!*
  298. *:BundleUpdate* *:BundleSearch* *:BundleList* *:BundleClean!*
  299. *:VundleInstall!* *:VundleUpdate* *:VundleSearch*
  300. *:VundleList* *:VundleClean!*
  301. In order to bring in new changes, Vundle is adopting a new interface.
  302. Going forward we will support primarily the Plugin namespace, additionally
  303. for convenience we will also alias some commands to the Vundle namespace.
  304. The following table summarizes the interface changes.
  305. Deprecated Names | New Names
  306. -----------------------------
  307. Bundle | Plugin
  308. BundleInstall(!) | PluginInstall(!), VundleInstall(!)
  309. BundleUpdate | PluginUpdate, VundleUpdate
  310. BundleSearch(!) | PluginSearch(!), VundleSearch(!)
  311. BundleClean | PluginClean(!), VundleClean(!)
  312. BundleList | PluginList
  313. Note: The Bundle commands will be deprecated. You may continue using them,
  314. but they may not get all future updates. For instance, we have enabled
  315. comments on Plugin lines but not Bundle, since it requires a change in
  316. command declaration.
  317. " vim: set expandtab sts=2 ts=2 sw=2 tw=78 ft=help norl: