Vim on Multiple Monitors

625 views
Skip to first unread message

Yuvi Panda

unread,
Sep 12, 2011, 12:00:40 AM9/12/11
to vim...@googlegroups.com
Anyone has a working setup that 'shares' a single Vim instance over multiple monitors?

Taylor Hedberg

unread,
Sep 12, 2011, 1:19:09 AM9/12/11
to vim...@googlegroups.com
Your question is a bit unspecific. Do you mean a single Vim window
stretched to span multiple monitors? Or do you mean multiple Vim windows
running from a single Vim process? Note that by "window", I am referring
to GUI application windows, not Vim's internal "split windows".

In the first case, that is entirely up to your OS or window manager to
handle. In the second case, no, I don't believe that is possible. One
instance of Vim equals one application window.

Maybe if you give some details about what you're trying to accomplish
with this setup, we could suggest potential alternatives.

Yuvi Panda

unread,
Sep 12, 2011, 1:44:44 AM9/12/11
to vim...@googlegroups.com
The latter - multiple 'GUI windows' from the same process.

The particular use case I had in mind was while doing a 3 way merge with fugitive - would be much easier if I can have one buffer on one monitor and two in another.

Taylor Hedberg

unread,
Sep 12, 2011, 10:31:43 AM9/12/11
to vim...@googlegroups.com
Yeah, I don't think that would work. You could probably figure out a way
to "send" one or more of the diff buffers to a separate instance of Vim
on the other display using the client/server features. But that, of
course, defeats the whole purpose of using Vim as a merge tool, since
you won't be able to :diffput and :diffget patch hunks to and from the
buffers anymore.

Ben Fritz

unread,
Sep 12, 2011, 11:04:09 AM9/12/11
to vim_use
Can you stretch your Vim GUI window across all your monitors somehow?
I occasionally do a diff across two monitors by resizing my Vim GUI
window to fill across both monitors, then using Vim's internal split
windows to line up roughly with the monitor boundaries.

Jacky Liu

unread,
Sep 12, 2011, 5:09:43 PM9/12/11
to vim_use
As far as I know *macs does that, being able to spawn many separate
windows called "frames" on top of one instance, it even allow several
person to edit one file at the same time(a feature called
"collaborative editing" which Vim lacks: http://en.wikipedia.org/wiki/Comparison_of_text_editors
), but you may forget about what I just said, now I'm fading away ...
Reply all
Reply to author
Forward
0 new messages