Ⅰ. 插件描述
A C++ Standard Template Library reference manualⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/stlrefvim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/stlrefvim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/stlrefvim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/stlrefvim
Ⅳ. 文档说明
This plugin aims to provide a reference manual for the C++ standard template library (STL). Based heavily off of the well-regarded SGI-STL documentation, this script puts the power of this documentation into your vim workflow. Lookups can easily be done with user-configurable key mappings.
For example, in the expression:
std::for_each(start, end, PrintFunc)
place the cursor over for_each and type <Leader>tr to go to documentation for this function. Type <Leader>te to go to an example that uses this function.
Many thanks must go to Christian Habermann's for his crefvim plugin (http://www.vim.org/scripts/script.php?script_id=614) that formed the basis of and was the inspiration for this plugin.