博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Vim
阅读量:7013 次
发布时间:2019-06-28

本文共 2803 字,大约阅读时间需要 9 分钟。

1 下载

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

2 配置,建立.vimrc,写入以下内容

set nocompatible              " be iMproved, requiredfiletype off                  " required" set the runtime path to include Vundle and initializeset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()" alternatively, pass a path where Vundle should install plugins"call vundle#begin('~/some/path/here')" let Vundle manage Vundle, requiredPlugin 'VundleVim/Vundle.vim'" The following are examples of different formats supported." Keep Plugin commands between vundle#begin/end." plugin on GitHub repoPlugin 'tpope/vim-fugitive'" plugin from http://vim-scripts.org/vim/scripts.html" Plugin 'L9'" Git plugin not hosted on GitHubPlugin '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 linecall vundle#end() " requiredfiletype 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格式

" plugin on GitHub repo        " GitHub 仓库插件格式        Plugin 'tpope/vim-fugitive'        " plugin from http://vim-scripts.org/vim/scripts.html        " vim 官方插件配置方法,写入名字就行了        Plugin 'L9'        " Git plugin not hosted on GitHub        " git服务器插件,但不是在GitHub上面        Plugin 'git://git.wincent.com/command-t.git'        " git repos on your local machine (i.e. when working on your own plugin)        " git 仓库在自己的电脑上        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. " 已经存在一个L9的插件了,另外再安装一个名字叫L9的插件 Plugin 'ascenator/L9', {
'name': 'newL9'}
 

3安装插件:

  1. 启动vim并运行:PluginInstall

  2. 从命令行安装: vim +PluginInstall +qall

 

转载于:https://www.cnblogs.com/qixianyu/p/6718234.html

你可能感兴趣的文章
【CentOS】Centos 6.4 python 2.6 升级到 2.7
查看>>
Cocos2d-x加Box2D制作弹弓类游戏
查看>>
nginx 源码安装参数详解
查看>>
seleniumPO模式
查看>>
在线修改表结构mysql5.5版本和pt-online-schema-change
查看>>
RabbitMQ学习总结(3)——入门实例教程详解
查看>>
CentOS 6.7 final编译安装配置 Python 环境
查看>>
HTML字符实体(Character Entities),转义字符串(Escape Sequence)
查看>>
Java基础学习总结(13)——流IO
查看>>
Java基础学习总结(17)——线程
查看>>
安装wampserver的过程很简单,php爱好者有福了
查看>>
主宰全球的10大算法
查看>>
BZOJ1022[SHOI2008]小约翰的游戏——anti-SG(反尼姆博弈)
查看>>
Java基础学习总结(14)——Java对象的序列化和反序列化
查看>>
2015长春网络赛总结
查看>>
[转]SpringMVC Controller介绍及常用注解
查看>>
Setting locale failed. Please check that your locale settings
查看>>
【数据库】MySQL性能优化之swap占用高
查看>>
Spring的JNDI数据源连接池配置示例及Spring对JNDI实现分析
查看>>
yum基本命令
查看>>