pair_files.vim


Ⅰ. 插件描述

Edit corresponding test / source files easily.

Ⅱ. 基本信息

创建日期:  2015-02-18
使用用户:  1
Github星:  1
插件作者:  William Ting

Ⅲ. 安装方法

使用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

  • :PairFileEdit edit the corresponding file in the current buffer.
  • :PairFileTabEdit edit the corresponding file in a new tab.
  • :PairFileSplitEdit edit the corresponding file in a new split.
  • :PairFileVSplitEdit edit 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

  1. Add Bundle 'wting/pair_files.vim' to ~/.vimrc
  2. vim +BundleInstall +qall

Using Pathogen

  1. cd ~/.vim/bundle
  2. git clone git://github.com/wting/pair_files.vim.git

License

Released under BSD License, full details in LICENSE file.

添加新评论