Ⅰ. 插件描述
Edit corresponding test / source files easily.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'wting/pair-files-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'wting/pair-files-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'wting/pair-files-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/wting/pair_files.vim
Ⅳ. 文档说明
# pair_files.vim
Description
pair_files.vim makes it easy to open corresponding tests or source code files
in yelp-main.
Usage
Open up a Python file in yelp-main. Enter one of the below commands to open
the corresponding source code or test file.
Commands
:PairFileEditedit the corresponding file in the current buffer.:PairFileTabEditedit the corresponding file in a new tab.:PairFileSplitEditedit the corresponding file in a new split.:PairFileVSplitEditedit the corresponding file in a new vertical split.
Example Keybindings
I find these command aliases useful to add into .vimrc:
commandalias pfe PairFileEdit
commandalias pfte PairFileTabEdit
commandalias pfse PairFileSplitEdit
commandalias pfve PairFileVSplitEdit
Installation
Using Vundle
- Add
Bundle 'wting/pair_files.vim'to~/.vimrc vim +BundleInstall +qall
Using Pathogen
cd ~/.vim/bundlegit clone git://github.com/wting/pair_files.vim.git
License
Released under BSD License, full details in LICENSE file.