Does anyone have an elegant solution for having MacVim or gvim span across multiple(potentially different resolution) monitors? Having 2 sessions doesn't work well due to separate buffers and swap files.

You would think you could have 2 gui windows share the same buffers, but I can't find anything that works.

link|improve this question
1  
I'd like to know the answer for this as well. I found this vimdoc.sourceforge.net/htmldoc/remote.html which seems like the right direction. But I haven't tried it out yet. – Amjith Oct 25 '11 at 15:47
feedback

migrated from stackoverflow.com Oct 26 '11 at 3:43

This question came from our site for professional and enthusiast programmers.

2 Answers

Expand the gvim window to cover both screens and use CTRL-W v to split the editing window vertically.

See :help CTRL-W for more window commands.

link|improve this answer
I'm well aware of splitting windows. This does not work well with different monitor resolutions unfortunately. Seems like there really isn't a good way to do this. – Patm Oct 26 '11 at 16:10
feedback

This is just an idea, as I am not too familiar with how vim and its variants handle a shared buffer. Perhaps a unix solution may help. Have you tried creating a hard or symbolic link with the ln command?

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.