Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

codeape2/vim-multiple-monitors

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Multiple monitor support for vim.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.