请稍侯

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()
  • :PlugInstall to install the plugins
  • :PlugUpdate to install or update the plugins
  • :PlugDiff to review the changes from the last update
  • :PlugClean to remove plugins no longer in the list

参考
Vim IDE Docker 以及中文指南