Ⅰ. 插件描述
Allows you to quickly switch between .h/.c, .h/.cc, .ads/.adb etcⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/otherfile-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/otherfile-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/otherfile-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/otherfile.vim
Ⅳ. 文档说明
Press F8 to switch between header and source files, or any other kind of paired files.
In the present state, handles C/C++/Ada files, but can be (really) easily modified to handle more.
If no alternate file is found, asks for the file name to create. Press ESC to cancel if you want.
By default maps <F8> to do the job; you may change this (see the end of file).