当前位置: 首页 > 工具软件 > Vundle > 使用案例 >

vim插件管理器之Vundle的使用

农明辉
2023-12-01

1.git clone Vundle

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

2.配置~/.vimrc文件

我自己习惯的配置

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()
Plugin 'VundleVim/Vundle.vim'

Plugin 'tpope/vim-fugitive'
Plugin 'git://git.wincent.com/command-t.git'
Plugin 'git://github.com/ycm-core/YouCompleteMe.git'
call vundle#end()            " required
filetype plugin indent on    " required
 
set nu
set ts=4
set shiftwidth=4
set softtabstop=4
set expandtab
set autoindent
set shell=/bin/bash

3.安装插件

打开vim执行 PlugInstall 命令 自动安装完成

该配置目前是我配置用来补全C++代码的,其他的请谨慎参考,具体教程请参考网络上其他文章详解。

 类似资料: