vim 安装插件方法

首先安装插件管理器,类似于python 中的pip
在终端输入

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
然后编辑~/.vimrc
输入如下
set nocompatible              " 这是必需的
filetype off                  " 这是必需的

" 你在此设置运行时路径
 set rtp+=~/.vim/bundle/Vundle.vim

 " vundle初始化
 call vundle#begin()

 Plugin 'VundleVim/Vundle.vim'

 Plugin 'scrooloose/nerdtree'
 "每个插件都应该在这一行之前
 call vundle#end()            " required
  filetype plugin indent on    " 这是必需的

添加完后在vim 下输入PluginInstall 就进入安装模式了

发布了65 篇原创文章 · 获赞 0 · 访问量 1216

猜你喜欢

转载自blog.csdn.net/weixin_44195175/article/details/104274026