vim-multiple-monitors


Ⅰ. 插件描述

Multiple monitor support for vim.

Ⅱ. 基本信息

创建日期:  2010-10-28
使用用户:  5
Github星:  44
插件作者:  Bernt Røskar Brenna

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

multimonitor.vim: better support for vim on multiple monitors

Author: Bernt R. Brenna

Installation

  • vim-plug

    • Plug 'codeape2/vim-multiple-monitors'

Similar instructions should also work for other plugin managers.

Instructions

Start each instance of vim using independent servers. When using
gvim each instance automatically uses its own server.

vim --servername UNIQUENAME

alternatively:

gvim

Opening a buffer simultaneously in multiple instances should result
in vim switching focus to the original buffer.

Note: Make sure to double check your window manager focus prevention
settings if focus isn't being transferred.

For Compiz see:
CCSM > General Options > Focus & Raise Behaviour > Focus Prevention Level

Implementation

When vim detects an existing swap file owned by another process, it fires
the SwapExists autocmd that calls a function (Swap_Exists) that will
communicates with the other instances and instructs the owning instance to
open the file (using the Remote_Open function).

Running the test suite

cd tests
./run

添加新评论