加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

VIM插件安装

发布时间:2020-12-15 16:55:39 所属栏目:安全 来源:网络整理
导读:一、VIM 插件管理器安装 -- Vundle Vundle项目地址:https://github.com/VundleVim/Vundle.vim 按照项目中的说明配置好Vundle 需要某个插件时,只需在.vimrc中添加即可。按添加的路径写法,可将插件分3类: 在Github vim-scripts 用户下的repos,只需要写出r

一、VIM 插件管理器安装 -- Vundle

Vundle项目地址:https://github.com/VundleVim/Vundle.vim

按照项目中的说明配置好Vundle


需要某个插件时,只需在.vimrc中添加即可。按添加的路径写法,可将插件分3类:

  • 在Github vim-scripts 用户下的repos,只需要写出repos名称
  • 在Github其他用户下的repos,需要写出”用户名/repos名”
  • 不在Github上的插件,需要写出git全路径

在.vimrc中配置好后,使用以下命令操控插件的安装、更新、删除:

  • 安装插件:BundleInstall
  • 更新插件:BundleUpdate
  • 清除不再使用的插件:BundleClean,
  • 列出所有插件:BundleList
  • 查找插件:BundleSearch


二、VIM 配色,以solarized配色为例

尝试了2种配色,solarized和vim-coloresque。这2种配色的安装步骤有所不同。

1. solarized

solarized项目地址:git://github.com/altercation/solarized.git。

在.vimrc的合适位置添加:Plugin 'altercation/solarized',保存退出。

打开vim,使用命令:BundleInstall,安装solarized配色。

在.vimrc中添加:

colorscheme solarized
set background=dark
保存退出vim,再次打开,报错。解决方法是将配色文件solarized.vim拷贝到.vim/colors目录下。

2.vim-coloresque

在.vimrc的合适位置添加:Plugin 'axiaoxin/favorite-vim-colorscheme',保存退出。

打开vim,使用命令:BundleInstall,安装vim-coloresque配色。

在.vimrc中添加:

colorscheme Tomorrow-Night-Bright
set background=dark


三、状态栏增强 -- vim-airline

vimrc配置如下:

Bundle 'bling/vim-airline'
set laststatus=2
打开vim,使用命令:BundleInstall,安装vim-airline。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读