vim插件管理之Vundle
2015-10-28 22:20
295 查看
Vim是一个类似于Vi的著名的功能强大、高度可定制的文本编辑器,在Vi的基础上改进和增加了很多特性。正是由于其可定制的特性,
许许多多的Vim插件便诞生了。管理这些插件又成为我们最为头疼的问题,最近无意中发现了Vundle----其特色在于使用git来管理插件,
更新方便,支持搜索,一键更新,从此只需要一个vimrc走天下。那么下面我们就来看看如何安装和配置Vundle:
1.在用户根目录下创建.vim/bundle目录(如果在用户根目录没有的这些目录的话)
2.将vundle拷贝到./vim/bundle中去:
3.配置vundle:在用户根目录下创建.vimrc文件(如果没有的话),并将以下代码拷贝到该文件中:
4.安装插件:运行vim,之后运行":PluginInstall"命令即可安装.vimrc文件中配置的插件
详情请前往Vundle官方网站查看
许许多多的Vim插件便诞生了。管理这些插件又成为我们最为头疼的问题,最近无意中发现了Vundle----其特色在于使用git来管理插件,
更新方便,支持搜索,一键更新,从此只需要一个vimrc走天下。那么下面我们就来看看如何安装和配置Vundle:
1.在用户根目录下创建.vim/bundle目录(如果在用户根目录没有的这些目录的话)
2.将vundle拷贝到./vim/bundle中去:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
3.配置vundle:在用户根目录下创建.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/'} " Avoid a name conflict with L9 Plugin 'user/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(安装插件;添加“!”表示升级文件或者仅仅使用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(使用":h"查看帮助) " Put your non-Plugin stuff after this line
4.安装插件:运行vim,之后运行":PluginInstall"命令即可安装.vimrc文件中配置的插件
详情请前往Vundle官方网站查看
相关文章推荐
- Scrum Meeting 10.28
- Cygwin中文乱码
- HTTP基本认证和摘要认证
- 项目40.1 小明有五本新书,要借给A,B,C三位小朋友,若每人每次只能借一本,则可以有多少种不同的借法?
- httpd+tomcat(2) -- proxy_ajp_module
- xocde 各版本下载
- JMeter压力测试和性能测试工具
- modelsim仿真错误解决办法
- httpd+tomcat(1) -- proxy_http_module
- 在ios中实现staggeringBeauty网站的效果
- 单调队列 fzu1894 志愿者选拔
- c++涉及继承和虚继承时的内存布局
- iOS多线程的初步研究-- 锁
- Cheese Aizu - 0558
- Java:网络编程值TCP的使用
- Python拷贝及多进程与类的问题
- about hash
- 由python代码生成UML类图
- corosync+pacemaker+nfs提供mysql高可用
- C++中如何给字符指针赋值