Sunday, March 4, 2012

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

Sorry about this, i didn't intend to send an empty message.

Thank you for the 'equalalways' tip, it's nice.

I tried and tied again but don't find any way of automating this. It
is frustrating, to be able to do it by hand, but not to automate it.

I'll stop my research here : i have a fast manual technique, taht will
be enough for me now.

2012/3/5, mascip <mascip@gmail.com>:
> 2012/3/5, Martin Petrov <martin@martinpetrov.com>:
>> BTW, you may also want to have a look at the equalalways option.
>>
>> A set noea might be useful if you want to specify manual split sizes.
>> Though in this case I doubt it'll be very useful.
>>
>> Cheers,
>> Martin
>>
>>
>>
>> Le 4 mars 2012 20:49, mascip <mascip@gmail.com> a écrit :
>>
>>> Thank you, both of you :o)
>>>
>>> > set co=155
>>> > :78 vs
>>> > set co=156
>>> this didn't work on my computer (windows xp)
>>> i obtained one window with 67 columns, and one with 89 (and the
>>> numbers are not always the same, in fact)
>>>
>>> The <CTRL>-W V solution works perfectly for me, if i set the initial
>>> window at the right size: 163 (that's a bit more than 2 * 78 = 156)
>>>
>>> If anyone has a more graceful solution, i would be happy to hear it,
>>> but now my problem is solved adequately.
>>>
>>> Nice, thanks =)
>>>
>>> 2012/3/5, Martin Petrov <martin@martinpetrov.com>:
>>> > When I tried this on macvim 7.3 (snapshot 62 / 15.8.2010) all seemed
>>> fine.
>>> > On linux gvim 7.3 (15.8.2010) I had to resize the window for
>>> > everything
>>> to
>>> > snap into place as expected.
>>> >
>>> > This might be a silly solution but you can try to give this a go:
>>> > set co=155
>>> > :78 vs
>>> > set co=156
>>> >
>>> > -- Martin
>>> >
>>> >
>>> > Le 4 mars 2012 19:25, Michael Ludwig <milu71@googlemail.com> a écrit :
>>> >
>>> >> 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
>>> >>
>>> >
>>> > --
>>> > 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
>>> >
>>>
>>>
>>> --
>>>
>>> mascip@gmail.com
>>> http://lesrikikibians.fr
>>>
>>> --
>>> 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 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
>>
>
>
> --
>
> mascip@gmail.com
> http://lesrikikibians.fr
>


--

mascip@gmail.com
http://lesrikikibians.fr

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