vim加装Bundle(vundle)插件管理工具

Vundle(https://github.com/VundleVim/Vundle.vim)的全称是Vim Bundle,它是一款Vim插件管理工具。Vundle让你可以非常轻松地安装、更新、搜索和清理Vim插件。它还能管理你的运行时环境,并帮助标记。

安装vundle

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

ok了,vundle已经被安装到你的~/.vim/bundle/vundle目录下了

配置vimrc

vim打开~/.vimrc

set nocompatible              " be iMproved, required
filetype off                  " required" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" Plugin 'ascenator/L9', {'name': 'newL9'}" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList       - lists configured plugins
" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line

要安装的插件直接以Plugin ‘XXX’的形式写入该配置文件即可
关于具体‘XXX’的地址形式,可以参看官方说明:一般官方的插件,只需写插件名字就行;普通github上的插件,需要写具体github地址

安装插件

进入vim,输入

:PluginInstall

卸载vundle

同样,输入

:PluginClean

搜索插件

:PluginSearch <text-list> 

github地址:vundle插件

举例

安装nerdtree

~/.vimrc中添加

Plugin 'The-NERD-Tree'

配置nerdtree快捷键
在vimrc中添加

map <F1> :NERDTreeToggle

即可在vim中按F1打开左侧目录

ctrl+w+w:光标自动在左右侧窗口切换

vim插件vundle实战相关推荐

  1. vim插件——Vundle

      版权声明:本文参考了<Vundle 官方文档>. 未经作者允许,严禁用于商业出版,否则追究法律责任.网络转载请注明出处,这是对原创者的起码的尊重!!! 1 简介 插件介绍:管理vim插 ...

  2. vim 插件vundle中Plugin和Bundle的区别

    参考博客:https://segmentfault.com/q/1010000010384766 目前vundle正在改变,版本不同,使用的命令就不同, 现在正在改变,借口正在改变,可以看到,名字已经 ...

  3. vim 安装_vim实战:插件安装(Vundle,NerdTree)

    一:插件管理器Vundle 1.简介 Vundle是vim的一个插件管理器, 同时它本身也是vim的一个插件.插件管理器用于方便.快速的安装.删除.Vim更新插件.vim Vundle插件官方地址:h ...

  4. 管理Vim插件的插件——Vundle

    用 vundle 来管理 vim 插件 首先vundle 来管理vim 是潮流,并且方便快捷 它使用类似 Ruby Bundler 的方式来管理插件,你只需要在.vimrc里面用Bundle声明插件 ...

  5. 如何在 Linux 上使用 Vundle 管理 Vim 插件

    毋庸置疑,Vim 是一款强大的文本文件处理的通用工具,能够管理系统配置文件和编写代码.通过插件,Vim 可以被拓展出不同层次的功能.通常,所有的插件和附属的配置文件都会存放在 ~/.vim 目录中.由 ...

  6. Windows下安装Vim插件管理Vundle

    VIM是编辑器之神,这个就不用说了,越使用越会体会到VIM的强大与便利.但是它的强大建立在众多插件组合之上,而Vim本身缺乏对插件的有效管理,安装插件并配置_vimrc文件非常不便.gmarik受到R ...

  7. Vim插件管理利器——Vundle

    Vundle是基于Git仓库的插件管理软件.Vundle将插件的安装简化为类似yum软件安装的过程,只要:BundleInstall插件就安装完了,:BundleClean之后插件就卸载了. 一.Vu ...

  8. vim 中的杀手级插件: vundle (vim 插件管理器)

    From:http://zuyunfei.com/2013/04/12/killer-plugin-of-vim-vundle/ vundle.txt:https://github.com/Vundl ...

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

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

最新文章

  1. 冒泡排序算法_PHP冒泡排序算法(一)
  2. Dynamics CRM2013 自定义开发工具 Dynamics XRM Tools 介绍
  3. CATALINA_BASE和CATALINA_HOME,多实例tomcat与多版本tomcat运行
  4. python使用率_Python获取CPU、内存使用率以及网络使用状态代码
  5. java 抽象类语法_JAVA基础语法8--多态/抽象类/抽象方法
  6. c语言错误解析-变量声明
  7. 初学Linux第三周
  8. 陈顺志 php,芦芽山之情
  9. 【Python爬虫】一个简单的网络爬虫
  10. mysql主从配置错误_mysql主从配置常见错误处理
  11. 用C实现任意一年的日历
  12. SpringBoot 2 快速整合 | 统一异常处理
  13. java系列7:this关键词
  14. 存到mysql的中文乱码_web项目存数据到数据库,中文乱码,解决过程
  15. python从入门到实践课后答案-Python编程:从入门到实践(课后习题8)
  16. Java定时任务自动调用方法
  17. 利用场景法设计atm自动取款机的测试用例_黑盒测试之场景法
  18. 像计算机科学家一样思考(C++)
  19. 13、threshold函数
  20. 中国联通家庭网关破解管理员账户

热门文章

  1. 小米净水器更换php教程,小米净水器改装步骤详细介绍
  2. js实现漂亮的玫瑰花
  3. C4996 “scanf“ 问题——初学者使用VS的拦路虎
  4. ASP PHP和JSP三大动态网页技术
  5. yum源配置方法一(阿里云源)
  6. 【ELK】   填坑
  7. 【建议收藏】5款好用到爆的神仙软件,太赞了
  8. 【实战篇】模块化编程之LCD驱动框架详解
  9. Fluentd性能优化实践
  10. RESTful风格-走进RESTful