openKylin论坛

 找回密码

使用Vundle更好的管理你的Vim插件--再也不用到处找vim插件了 [复制链接]

本帖最后由 suiang 于 2013-11-21 21:40 编辑

Vundle
项目托管在github上 https://github.com/gmarik/vundle

其特色在于使用git来管理插件,更新方便,支持搜索,一键更新,从此只需要一个vimrc走天下

安装与配置
使用git命令$
  1. git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
复制代码
windows下使用,可以考虑放置在$HOME/.vim/bundle/vundle
  1. " vundle {
  2. set rtp+=~/.vim/bundle/vundle/
  3. " 如果在windows下使用的话,设置为
  4. " set rtp+=$HOME/.vim/bundle/vundle/
  5. call vundle#rc()
  6. " }
  7. "
  8. " let Vundle manage Vundle
  9. " required!
  10. Bundle 'gmarik/vundle'

  11. " My Bundles here:
  12. "
  13. " original repos on github
  14. " github上的用户写的插件,使用这种用户名+repo名称的方式
  15. " Bundle 'tpope/vim-fugitive'
  16. " Bundle 'Lokaltog/vim-easymotion'
  17. " Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
  18. " Bundle 'tpope/vim-rails.git'
  19. " vim-scripts repos
  20. " vimscripts的repo使用下面的格式,直接是插件名称
  21. Bundle 'taglist.vim'
  22. Bundle 'SuperTab'
  23. Bundle 'vimwiki'
  24. Bundle 'winmanager'
  25. Bundle 'bufexplorer.zip'
  26. Bundle 'The-NERD-tree'
  27. Bundle 'matrix.vim--Yang'
  28. Bundle 'FencView.vim'
  29. Bundle 'Conque-Shell'
  30. Bundle 'Vimpress'
  31. Bundle 'Markdown'
  32. Bundle 'LaTeX-Suite-aka-Vim-LaTeX'
  33. Bundle 'c.vim'
  34. Bundle 'snipMate'

  35. " non github reposo
  36. " 非github的插件,可以直接使用其git地址
  37. " Bundle 'git://git.wincent.com/command-t.git'
  38. " ...

  39. "
  40. " Brief help
  41. " :BundleList          - list configured bundles
  42. " :BundleInstall(!)    - install(update) bundles
  43. " :BundleSearch(!) foo - search(or refresh cache first) for foo
  44. " :BundleClean(!)      - confirm(or auto-approve) removal of unused bundles
  45. " vundle主要就是上面这个四个命令,例如BundleInstall是全部重新安装,BundleInstall!则是更新
  46. " 一般安装插件的流程为,先BundleSearch一个插件,然后在列表中选中,按i安装
  47. " 安装完之后,在vimrc中,添加Bundle 'XXX',使得bundle能够加载,这个插件,同时如果
  48. " 需要配置这个插件,也是在vimrc中设置即可
  49. " see :h vundle for more details or wiki for FAQ
  50. " NOTE: comments after Bundle command are not allowed..
复制代码
参考这里 https://github.com/humiaozuzu/dot-vimrc
原文链接 http://yishanhe.net/using-vim-vundle-for-better-plugin-management/

配置了一下自己的vim

附图:








楼主
发表于 2013-11-21 21:38:18
回复

使用道具 举报

使用Vundle更好的管理你的Vim插件--再也不用到处找vim插件了 [复制链接]

ubuntukylin怎么安装啊?
沙发
发表于 2014-8-7 08:29:58
回复

使用道具 举报

openKylin

GMT+8, 2024-6-3 05:54 , Processed in 0.023588 second(s), 20 queries , Gzip On.

Copyright ©2022 openKylin. All Rights Reserved .

ICP No. 15002470-12 Tianjin

快速回复 返回顶部 返回列表