vim-plug

vim包管理器vim-plug

安装

curl -fLo ~/.vim/autoload/plug.vim --create-dirs 
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

配置

在~/.vim中添加要下载的vim插件,然后重启

call plug#begin('~/.vim/plugged')
Plug 'itchyny/lightline.vim'
call plug#end()

:source ~/.vimrc

使用

1. :PlugStatus 查看下载状态
2. :PlugInstall 下载插件
3. :PlugUpdate 更新插件
4. :PlugClean 删除插件
5. :PlugUpgrade 更新vim-plug

配置vim主题

https://github.com/joshdick/onedark.vim#troubleshooting

//安装语法高亮
Plug 'sheerun/vim-polyglot'

配置完成后

原文地址:https://www.cnblogs.com/pluslius/p/9999972.html