VIM 插件
一、Vundle 插件管理
配置
$ cd ~/.vim/bundle
$ git clone git@github.com:VundleVim/Vundle.vim.git
$ vim ~/.vimrc
" 插件管理
set nocompatible " 关闭兼容模式
filetype off
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#begin()
"Bundle 'gmarik/vundle'
"Bundle 'taglist.vim'
"Bundle 'scrooloose/nerdtree'
"Bundle 'kien/ctrlp.vim'
"Bundle 'Yggdroot/LeaderF'
"Bundle 'fholgado/minibufexpl.vim'
"Bundle 'winmanager'
"Bundle 'Valloric/YouCompleteMe'
"Bundle 'scrooloose/syntastic'
call vundle#end()
filetype on
命令
:PluginInstall 安装在.vimrc文件中列出来的所有插件。
:PluginInstall <plugin-name> 安装指定的插件
:PluginClean 清理未用插件
:PluginUpdate
:PluginList
:PluginSearch
二、Ctags 建立标签索引
配置
$ sudo apt-get install ctags
$ vim ~/.vimrc
" Ctags 设置
set tags=./tags:,tags " ./tags: 向上找直到根
使用
$ ctags -R --c++-kinds=+px --fields&#