On Wednesday, April 5, 2017 at 8:58:51 PM UTC-5, L. A. Walsh wrote:
> Paul wrote:
> > On Tuesday, 28 March, 2017 at 13:08:03 BST, L A Walsh wrote:
> >> Just the other day, I had two files open in tabs (.cc and .h: a C++ 
> >> source &
> >> header).  Instead of window switching, I wanted to change my visual 
> >> layout for
> >> 1 pair of files to see them side-by-side (and when I was done, close 
> >> the 2nd
> >> display leaving the 2nd file as a 2nd tab in the 1st window.
> >
> > Why not just :vsplit the other file into the current tab, and :quit it 
> > when done?
> ---
>     If vsplit could split the file into another window, that'd be great!
> 
> But I want to be able to arrange the windows side-by-side -- maybe 1
> on each side or, rarely, maybe 2 on each side (one above another).
> 
> Trying to simulate all of this in 1 window is near impossible,
> but being able to view multiple files at the same time in
> some side-by-side or one-on-top seems like a fairly basic
> desire.  Right now, I have 10 different copies of gvim running,
> each with 2 files (c++ source & header) and another 4 copies
> with other work/projects in them.  At times I have 6-8 gvim's
> open on my desktop each w/different files that I move between
> to analyze call paths between different modules.
> 
> In this case, sometimes I want to view the header & c++ source
> side-by-side in two windows and when done, I'd like to move
> the header-file-window back into a tab of the source-file-window.
> 
> When I have to make code changes in multiple windows, it is
> a hassle that I don't have the same history list in common
> so I can repeat commands in each window instead of having to type
> them, afresh, in each window.
> 
> People who do development get larger screens and multiple screens
> so they can have multiple files and projects open at the same
> time.
> 
> Does that help understand my use case?
> 
> Thanks!
> Linda

I'm not quite sure I understand why you need another top-level application 
window. From your description I think you may want to open a new tab on the 
first file with ":tab sp" and then ":vsp other_file" to get both files in one 
tab page (and you'll still have both files in the previous tab pages as well). 
When you're done, ":tabclose" and you're back to where you started.

I can see a need for multiple top-level application windows if you're asking 
about putting files up on a second monitor, I guess. But just splitting a view 
of two files at a time is easy to do in a new tab page with split windows on 
one monitor.

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to