switch_headers.vim


Ⅰ. 插件描述

Simple switching between corresponding .h/.hpp and .c/.cpp files

Ⅱ. 基本信息

创建日期:  2006-08-31
使用用户:  1
Github星:  2
插件作者:  Slavomir Smutny

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/switch-headers-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/switch-headers-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/switch-headers-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/switch_headers.vim

Ⅳ. 文档说明

Simply switches between .c/.cpp and .h/.hpp files, suitable for one-keystroke switching.
Order of priority when looking for corresponding files:
1) if .h file, seeks for .c first, then .cpp
2) otherwise, seeks for .h first, then .hpp
Inspired by vimtip #384. Not as complex as vimscript #31, but if you need only small amount of code ...

添加新评论