Ⅰ. 插件描述
Small vim plugin to help working in CMake C/C++ projectsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'po1/vim-pycmake'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'po1/vim-pycmake'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'po1/vim-pycmake'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/po1/vim-pycmake
Ⅳ. 文档说明
#vim-pycmake
or how to mislead people about what this plugin does with a poorly chosen name
Small vim plugin to help working in CMake C/C++ projects
After loading this plugin, vim will scan for a CMake project for any C/C++ source or header file opened. If such a project is found, the include paths generated by CMake will be added to the vim path, and to syntastic include path as well. This enables the use of go-to-file over #includes and filename completion, among other nice things.
On opening a c/c++ file, this plugin will also scan the headers for tags and store them under /tmp/tags. This is only done once per header, but it can significantly slow down the opening of a source file the first time.
More features to come.