vim plug 配置 及 常用
21 September 2024
vim plug 配置 及 常用快捷键
vim-plug
vim-plug 安装 & 使用:
安装
# linux/unix
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://gh-proxy.com/https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# windows
iwr -useb https://gh-proxy.com/https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
ni $HOME/vimfiles/autoload/plug.vim -Force
使用,Add a vim-plug section to your ~/.vimrc (or ~/.config/nvim/init.vim for Neovim):
call plug#begin()
" List your plugins here
Plug 'tpope/vim-sensible'
Plug 'itchyny/lightline.vim'
call plug#end()
:PlugInstallto install the plugins:PlugUpdateto install or update the plugins:PlugDiffto review the changes from the last update:PlugCleanto remove plugins no longer in the list
