Thursday, August 31, 2017

Re: Splits and resizing

On Thu, 31 Aug 2017 06:33:29 -0700 (PDT)
Robert <sigzero@gmail.com> 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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment