centOS vim插件配置
时间: 2023-07-26 18:52:25 浏览: 265
vim配置插件
首先,你需要安装vim插件管理器Vundle。可以通过以下命令进行安装:
```
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
```
接着,在你的`~/.vimrc`文件中添加以下内容,用于启用Vundle插件管理器和安装插件:
```
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" Add your plugins here (for example)
Plugin 'scrooloose/nerdtree'
Plugin 'tpope/vim-fugitive'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
```
保存并退出`~/.vimrc`文件,然后打开vim,执行以下命令,安装配置好的插件:
```
:PluginInstall
```
Vundle将自动从GitHub上下载和安装已列出的插件。
至此,你的vim插件配置已完成。
阅读全文