Sunday, March 4, 2012

Re: vimrc - split and resize windows, in gVim - how to do it ?

mascip schrieb am 04.03.2012 um 21:32 (+0000):

> I want to open gVim with a window split in two,
> and i want to be able to set the size of both windows (to 78, but
> that's not the point).
>
> How can i do this?
>
> I tried to first set the number of columns of the unique window,
> and then split it to the right size,
> but it doesn't split to the size i specified, at all.
> Why is that?

In GVim 7.3 (27.10.2010) on Windows, your commands beloew work fine,
producing a split window that looks like 78 columns (haven't counted).

> Here is what i did :
> set co=156 " window's number of columns
> :78 vs " open with 2 vertical windows

To split the window in two even halves, do C-w v. That won't start Vim
with the split in place, but it's just two keystrokes, so maybe is good
enough.

--
Michael Ludwig

--
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

No comments:

Post a Comment