Vundle是vim上的插件管理器.只需要在.vimrc添加上控件名,Vundle可以帮我们下载到插件文件夹/Users/{username}/.vim/bundle中.

有一个vim插件的资源网站,可以在那里搜索:vim script

clone Vundle ,在输入一下命令

  1. mkdir ~/.vim
  1. mkdir ~/.vim/bundle
  1. cd ~/.vim/bundle
  1. git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

修改配置文件~/.vimrc

  1. set backspace=
  2.  
  3. set nocompatible " be iMproved, required
  4. filetype off " required
  5. " set the runtime path to include Vundle and initialize
  6. set rtp+=~/.vim/bundle/Vundle.vim
  7. call vundle#begin()
  8. " alternatively, pass a path where Vundle should install plugins
  9. "call vundle#begin('~/some/path/here')
  10. " let Vundle manage Vundle, required
  11. Plugin 'VundleVim/Vundle.vim'
  12. " The following are examples of different formats supported.
  13. " Keep Plugin commands between vundle#begin/end.
  14. " plugin on GitHub repo
  15. Plugin 'tpope/vim-fugitive'
  16. " plugin from http://vim-scripts.org/vim/scripts.html
  17. " Plugin 'L9'
  18. " Git plugin not hosted on GitHub
  19. Plugin 'git://git.wincent.com/command-t.git'
  20. " git repos on your local machine (i.e. when working on your own plugin)
  21. Plugin 'file:///home/gmarik/path/to/plugin'
  22. " The sparkup vim script is in a subdirectory of this repo called vim.
  23. " Pass the path to set the runtimepath properly.
  24. Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
  25.  
  26. Plugin 'MarcWeber/vim-addon-mw-utils'
  27. Plugin 'tomtom/tlib_vim'
  28. Plugin 'garbas/vim-snipmate'
  29.  
  30. Plugin 'davidhalter/jedi-vim'
  31. Plugin 'nvie/vim-flake8'
  32. Plugin 'klen/python-mode'
  33.  
  34. Plugin 'google/vim-maktaba'
  35. Plugin 'google/vim-codefmt'
  36.  
  37. Plugin 'google/vim-glaive'
  38.  
  39. augroup autoformat_settings
  40. autocmd FileType bzl AutoFormatBuffer buildifier
  41. autocmd FileType c,cpp,proto,javascript AutoFormatBuffer clang-format
  42. autocmd FileType dart AutoFormatBuffer dartfmt
  43. autocmd FileType go AutoFormatBuffer gofmt
  44. autocmd FileType gn AutoFormatBuffer gn
  45. autocmd FileType html,css,sass,scss,less,json AutoFormatBuffer js-beautify
  46. autocmd FileType java AutoFormatBuffer google-java-format
  47. autocmd FileType python AutoFormatBuffer yapf
  48. " Alternative: autocmd FileType python AutoFormatBuffer autopep8 autocmd FileType vue AutoFormatBuffer prettier
  49. augroup END
  50.  
  51. " Install L9 and avoid a Naming conflict if you've already installed a
  52. " different version somewhere else.
  53. " Plugin 'ascenator/L9', {'name': 'newL9'}
  54. " All of your Plugins must be added before the following line
  55. call vundle#end() " required
    filetype plugin indent on " required
  56. " To ignore plugin indent changes, instead use:
  57. "filetype plugin on
  58. "
  59. " Brief help
  60. " :PluginList - lists configured plugins
  61. " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
  62. " :PluginSearch foo - searches for foo; append `!` to refresh local cache
  63. " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
  64. "
  65. " see :h vundle for more details or wiki for FAQ
  66. " Put your non-Plugin stuff after this line

然后输入vim命令,在vim界面输入:PluginInstall 安装插件

在vim界面输入:PluginList 查看已安装插件

Vundle安装及使用的更多相关文章

  1. vim vundle 安装Base16 Vim主题

    1.vim /etc/vimrc set background=dark colorscheme base16-default 2.同样在vimrc中的vundle位置添加 Plugin 'chris ...

  2. vundle安装 给vim插上翅膀

    (这些文章都是从我的个人主页上粘贴过来的,大家也可以访问我的主页 www.iwangzheng.com) vundle安装方法如下 首先执行以下命令 $ git clone https://githu ...

  3. Vim使用Vundle安装代码补全插件(YouCompleteMe)

    安装 Vundle 它的使用方法很简单,安装一个插件只需要在 ~/.vimrc 按照规则中添加 Plugin 的名称,某些需要添加路径,之后在 Vim 中使用:PluginInstall既可以自动化安 ...

  4. Windows下Vundle安装

    鼠标手老是发作,没办法.想学习vim尽量减少编码时使用鼠标的频率.安装好gVim开始安装Vundle插件,总结下安装过程和各种遇到的坑: github上VundleVim倒是有说明 Windows S ...

  5. gvim下用Vundle安装solarized主题的方法

    1.在.vimrc中加入 Bundle 'Solarized' 2.重启gvim,并执行 :BundleInstall 3.将solarized.vim文件放入.vim下的colors文件夹内(如果没 ...

  6. Vim+Vundle+YouCompleteMe 安装

    这段时间在Centos 7上开发c++程序,想为vim安装YouCompleteMe插件,参照几个博客无果,果断上官网找解决方案.功夫不负苦心人,终于搞定. 学习东西还是要多上官网. 下面送上本次的收 ...

  7. vim插件管理器:Vundle的介绍及安装(很全)(转载)

    转载自:https://blog.csdn.net/zhangpower1993/article/details/52184581 背景 Vim缺乏默认的插件管理器,所有插件的文件都散布在~/.vim ...

  8. Windows下 vundle的安装和使用

    准备工作 1. 安装git 去官网下载,安装即可. 2. 添加git的环境变量 并将Git 的安装路径加入环境变量Path,如 D:\Program Files\Git\cmd 然后运行cmd,输入 ...

  9. Windows下Vim插件管理器Vundle的安装以及使用简介

    Vundle下载 从GitHub clone仓库 cd %USERPROFILE% git clone git@github.com:VundleVim/Vundle.vim.git %USERPRO ...

随机推荐

  1. Qt编写的项目作品2-控件属性设计器(组态)

    一.功能特点 自动加载插件文件中的所有控件生成列表,默认自带的控件超过120个. 拖曳到画布自动生成对应的控件,所见即所得. 右侧中文属性栏,改变对应的属性立即应用到对应选中控件,直观简洁,非常适合小 ...

  2. IDEA启动Tomcat报错Address localhost:1099 is already in use解决办法

    问题:Error running 'lugia-web': Address loaclhost:1099 is already in use如下图 解决方法:cmd输入下面命令: netstat -a ...

  3. Web移动前端开发-——rem+less+媒体查询,rem+flexble.js+媒体查询

    实际开发搞搞起来!!!! rem适配方案 媒体查询+rem+less 基础知识铺垫 第一步,我们需要拿到设计稿,安装设计稿的要求来设置一个合适的html字体大小. 第二步,计算元素大小的取值 页面re ...

  4. Spring Cloud 支付宝支付的流程

    沙箱环境又称沙盘,为了开发与调试所提供的环境,它与生产环境互相隔离,但具有生产环境几乎完全相同的功能蚂蚁金服开放平台——开发者中心1.https://openhome.alipay.com2.提供的调 ...

  5. Spring-ResolvableType可解决的数据类型

    ResolvableType,可解决的数据类型.它为java语言中的所有类型提供了相同的数据结构,其内部封装了一个java.lang.reflect.Type类型的对象. 在讲解这个数据结构之前,首先 ...

  6. javascript 对象只读

    var person = {}; Object.defineProperty(person, "name", { writable: false, value: "nic ...

  7. H5页面跳转到小程序代码

    1.H5页面加代码直接打开小程序 <script type="text/javascript src="https://res.wx.qq.com/open/js/jweix ...

  8. sql拆分列 时间拆分 日、月、年

    我想 查看今日访问人数 需要分组查询 就得 时间拆分 这两天百度 方法有很多 substring ... 但是 我这一列 是时间类型: 可以直接用 DATEPART() 函数用于返回日期/时间的单独部 ...

  9. 关于RxJS 处理多个Http请求 串行与并行方法

    mergeMap mergeMap 操作符用于从内部的 Observable 对象中获取值,然后返回给父级流对象. 合并 Observable 对象 123456 import { of } from ...

  10. 《新标准C++程序设计》2.1-2.3(C++学习笔记3)

    1.结构化程序设计的不足 程序=算法+数据结构 数据结构和变量相对应,算法和函数相对应,算法是用来操作数据结构的. 结构化程序设计中,函数和其所操作的数据结构,没有直观的联系.随着程序规模的增加,程序 ...