Splits and resizing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Splits and resizing

robert h-2
I almost always do a vertical split to the left of my main window. I would like the main window I started with not to resize when the split is added (widening the window to accommodate the split) and when closing the split I am back to the original window size.

Help?

Bob

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Splits and resizing

Shawn H Corey
On Thu, 31 Aug 2017 06:33:29 -0700 (PDT)
Robert <[hidden email]> wrote:

> I almost always do a vertical split to the left of my main window. I
> would like the main window I started with not to resize when the
> split is added (widening the window to accommodate the split) and
> when closing the split I am back to the original window size.
>
> Help?
>
> Bob
>

I set up some key maps to change the size and position. After you
change the width, you can split.


" --------------------------------------
" keymap to change window position & size
" <C-M-S> single width
" <C-M-D> double width
" <C-M-W> wider than single
noremap <C-M-S> :set lines=60 columns=100<CR>:winpos 500 0<CR>
noremap <C-M-D> :set lines=60 columns=201<CR>:winpos 100 0<CR>
noremap <C-M-W> :set lines=60 columns=151<CR>:winpos 250 0<CR>


--
Don't stop where the ink does.

        Shawn H Corey

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Splits and resizing

Grant Taylor-2
In reply to this post by robert h-2
On 08/31/2017 07:33 AM, Robert wrote:
> I almost always do a vertical split to the left of my main window. I would like the main window I started with not to resize when the split is added (widening the window to accommodate the split) and when closing the split I am back to the original window size.

Are you talking about terminal and / or GUI?

It sounds like you're talking about GUI and wanting the vim window to
widen to accommodate the new split.



--
Grant. . . .
unix || die

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.