vim-split-open


Ⅰ. 插件描述

A vim plugin to open pairs of files in split tabs

Ⅱ. 基本信息

创建日期:  2019-10-18
使用用户:  1
Github星:  1
插件作者:  mandlm

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# SplitOpen

This vim plugin opens file-pairs in a new split-window tab

Usage

Use

:SplitOpen filename 

with a .cpp or .h file as filename to open a new tab containing a vertical split
with the corresponding header file in the left window and the corresponding
source file in the right window.

Configuration

You can configure the following settings:

g:splitopen_extensions

Use this dictionary to define your pairs of left-hand- right-hand-side file

  1. E.g.

    let g:splitopen_extensions = {"h": "cpp"}

always places a .cpp file on the right-hand side when opening an .h file and
vice versa.

g:splitopen_set_fzf_keys

Set this option to 1

let g:splitopen_set_fzf_keys = 1

to have SplitOpen overwrite the default fzf keybindings ctrl-t/x/v for opening
files in splits or tabs to add an addional binding ctrl-s to call SplitOpen.

License

SplitOpen is GPL-3.0 licensed. See LICENSE file for more info.

Changelog

v1.0.0

  • Fixed error when reloading plugin

v0.0.4

  • Add filetype configuraton

v0.0.3

  • Add fzf.vim keybinding

v0.0.2

  • Added delay-loading
  • Added documentation

v0.0.1

  • Initial release

添加新评论