Full Screen and the green button

8 views
Skip to first unread message

Brian McKee

unread,
Feb 15, 2008, 4:22:04 PM2/15/08
to vim...@googlegroups.com
Hi All,
MacVim's current behaviour is driving me nuts
(and yes, we had this discussion a while ago and I guess I'm in the
minority here)

So, how can I make *my* MacVim

1) maximize both height and width when I push the green button without
having to hit 'shift' too

2) make <D-F> or :se fu maximize height and width at the same time as
it blanking the rest of the screen.

I'm hoping I can just add some settings to my .vimrc/.gvimrc ?

Thanks
Brian

Nico Weber

unread,
Feb 15, 2008, 4:27:43 PM2/15/08
to vim...@googlegroups.com
Hi,

>
> So, how can I make *my* MacVim
>
> 1) maximize both height and width when I push the green button without
> having to hit 'shift' too

That's currently not possible as far as I know.

> 2) make <D-F> or :se fu maximize height and width at the same time as
> it blanking the rest of the screen.

Add this to your gvimrc (I believe it's overwritten if you put it in
your vimrc):

an <silent> 9900.320 Window.Toggle\ Full\ Screen\ Mode :set
invfullscreen lines=999<CR>

you can also add a `columns=x`, but you have to play with the x a bit,
because MacVim doesn't clip the width to the screen. This will
hopefully become easier within the next weeks.

HTH,
Nico

björn

unread,
Feb 15, 2008, 4:38:52 PM2/15/08
to vim...@googlegroups.com
On 15/02/2008, Nico Weber <nicola...@gmx.de> wrote:
>
> >
> > So, how can I make *my* MacVim
> >
> > 1) maximize both height and width when I push the green button without
> > having to hit 'shift' too
>
> That's currently not possible as far as I know.

Nope. I would have to add a user default to support that...which I by
all means can do, but it will be a "hidden setting" in that I wouldn't
want to add that to the preferences panel. Is that good enough?


> > 2) make <D-F> or :se fu maximize height and width at the same time as
> > it blanking the rest of the screen.
>
> Add this to your gvimrc (I believe it's overwritten if you put it in
> your vimrc):
>
> an <silent> 9900.320 Window.Toggle\ Full\ Screen\ Mode :set
> invfullscreen lines=999<CR>
>
> you can also add a `columns=x`, but you have to play with the x a bit,
> because MacVim doesn't clip the width to the screen. This will
> hopefully become easier within the next weeks.

Actually, since I refactored the view code it does clip to the width
as well, so you can add `columns=X' as well!

/Björn

Brian McKee

unread,
Feb 15, 2008, 4:49:09 PM2/15/08
to vim...@googlegroups.com
On Feb 15, 2008 4:38 PM, björn <bjorn.w...@gmail.com> wrote:
> On 15/02/2008, Nico Weber <nicola...@gmx.de> wrote:
> > > So, how can I make *my* MacVim
> > > 1) maximize both height and width when I push the green button without
> > > having to hit 'shift' too
> > That's currently not possible as far as I know.
> Nope. I would have to add a user default to support that...which I by
> all means can do, but it will be a "hidden setting" in that I wouldn't
> want to add that to the preferences panel. Is that good enough?

More than good enough. If it's easy. I don't want you adding a
bunch of code for one person!
On the other hand, I *think* I'm not alone on this one. Are the
'hidden' preferences documented anywhere?

> > > 2) make <D-F> or :se fu maximize height and width at the same time as
> > > it blanking the rest of the screen.
> > Add this to your gvimrc (I believe it's overwritten if you put it in
> > your vimrc):
> > an <silent> 9900.320 Window.Toggle\ Full\ Screen\ Mode :set
> > invfullscreen lines=999<CR>
> > you can also add a `columns=x`, but you have to play with the x a bit,
> > because MacVim doesn't clip the width to the screen. This will
> > hopefully become easier within the next weeks.
> Actually, since I refactored the view code it does clip to the width
> as well, so you can add `columns=X' as well!

Yea! I updated to 22 and added Nico's suggestion with columns=999
and that's the effect I was looking for when I hit <D-F> !
Thanks!

Brian

björn

unread,
Feb 15, 2008, 4:56:49 PM2/15/08
to vim...@googlegroups.com
On 15/02/2008, Brian McKee <brian...@gmail.com> wrote:
>
> On Feb 15, 2008 4:38 PM, björn <bjorn.w...@gmail.com> wrote:
> > On 15/02/2008, Nico Weber <nicola...@gmx.de> wrote:
> > > > So, how can I make *my* MacVim
> > > > 1) maximize both height and width when I push the green button without
> > > > having to hit 'shift' too
> > > That's currently not possible as far as I know.
> > Nope. I would have to add a user default to support that...which I by
> > all means can do, but it will be a "hidden setting" in that I wouldn't
> > want to add that to the preferences panel. Is that good enough?
>
> More than good enough. If it's easy. I don't want you adding a
> bunch of code for one person!
> On the other hand, I *think* I'm not alone on this one. Are the
> 'hidden' preferences documented anywhere?

See :h macvim-prefs

It will be trivial to add such a patch...so no worries. I can also
see that more people would prefer this behaviour (although I do not
wish to encourage anybody to go over to the dark side with Brian ;-)
).

/Björn

Nico Weber

unread,
Feb 15, 2008, 5:09:32 PM2/15/08
to vim...@googlegroups.com
> More than good enough. If it's easy. I don't want you adding a
> bunch of code for one person!
> On the other hand, I *think* I'm not alone on this one. Are the
> 'hidden' preferences documented anywhere?

http://code.google.com/p/macvim/wiki/UserDefaults

Brian McKee

unread,
Feb 15, 2008, 5:23:33 PM2/15/08
to vim...@googlegroups.com
On Fri, Feb 15, 2008 at 4:56 PM, björn <bjorn.w...@gmail.com> wrote:
>
> On 15/02/2008, Brian McKee <brian...@gmail.com> wrote:
> >
> > On Feb 15, 2008 4:38 PM, björn <bjorn.w...@gmail.com> wrote:
> > > On 15/02/2008, Nico Weber <nicola...@gmx.de> wrote:
> > > > > So, how can I make *my* MacVim 1) maximize both height and width
> > > > > when I push the green button without having to hit 'shift' too
> > > > That's currently not possible as far as I know.
> > > Nope. I would have to add a user default to support that...which I by
> > > all means can do, but it will be a "hidden setting" in that I wouldn't
> > > want to add that to the preferences panel. Is that good enough?
> >
> > More than good enough. If it's easy. I don't want you adding a bunch
> > of code for one person! On the other hand, I *think* I'm not alone on
> > this one. Are the 'hidden' preferences documented anywhere?
>
> See :h macvim-prefs

Ahhh (ok, altogether now - Brian RTFM!)


>
> It will be trivial to add such a patch...so no worries. I can also see that
> more people would prefer this behaviour (although I do not wish to encourage
> anybody to go over to the dark side with Brian ;-)).


Thanks.

I added the ODBCInput manager this afternoon, and using MacVim in
both Mail and Cyberduck (along with Firefox using It's All Text) is enough to
drag anybody to the dark side.... :-]

Thanks guys for the great work!

Brian

björn

unread,
Feb 17, 2008, 10:01:05 AM2/17/08
to vim...@googlegroups.com
On 15/02/2008, Brian McKee <brian...@gmail.com> wrote:
>
> On Fri, Feb 15, 2008 at 4:56 PM, björn <bjorn.w...@gmail.com> wrote:
> >
> > On 15/02/2008, Brian McKee <brian...@gmail.com> wrote:
> > >
> > > On Feb 15, 2008 4:38 PM, björn <bjorn.w...@gmail.com> wrote:
> > > > On 15/02/2008, Nico Weber <nicola...@gmx.de> wrote:
> > > > > > So, how can I make *my* MacVim 1) maximize both height and width
> > > > > > when I push the green button without having to hit 'shift' too
> > > > > That's currently not possible as far as I know.
> > > > Nope. I would have to add a user default to support that...which I by
> > > > all means can do, but it will be a "hidden setting" in that I wouldn't
> > > > want to add that to the preferences panel. Is that good enough?
> > >
> > > More than good enough. If it's easy. I don't want you adding a bunch
> > > of code for one person! On the other hand, I *think* I'm not alone on
> > > this one. Are the 'hidden' preferences documented anywhere?
> >
> > It will be trivial to add such a patch...so no worries. I can also see that
> > more people would prefer this behaviour (although I do not wish to encourage
> > anybody to go over to the dark side with Brian ;-)).

With the latest source code version you can make the green blob button
zoom in both horizontal and vertical directions by setting the user
default MMZoomBoth. This is also documented in ":h macvim-prefs".

/Björn

Nico Weber

unread,
Feb 17, 2008, 1:20:09 PM2/17/08
to vim...@googlegroups.com
> With the latest source code version you can make the green blob button
> zoom in both horizontal and vertical directions by setting the user
> default MMZoomBoth. This is also documented in ":h macvim-prefs".

I still can't see this on repo.or.cz/w/MacVim.git -- did you already
push this out?

Nico

björn

unread,
Feb 17, 2008, 1:41:16 PM2/17/08
to vim...@googlegroups.com

Oops, forgot to push. Now it is there. :-)

/Björn

Nico Weber

unread,
Feb 17, 2008, 1:47:04 PM2/17/08
to vim...@googlegroups.com
>>> With the latest source code version you can make the green blob
>>> button
>>> zoom in both horizontal and vertical directions by setting the user
>>> default MMZoomBoth. This is also documented in ":h macvim-prefs".
>>
>> I still can't see this on repo.or.cz/w/MacVim.git -- did you already
>> push this out?
>
> Oops, forgot to push. Now it is there. :-)

Not that I'm ever going to use this pref, but I'd expect Cmd-click to
maximize in vertical direction only when this pref is set (and in both
directions else).

Nico

Nico Weber

unread,
Feb 17, 2008, 1:49:39 PM2/17/08
to vim...@googlegroups.com

ie. `if (zoomBoth && !cmdLeftClick || !zoomBoth && cmdLeftClick)` (==
`if (zoomBoth ^ cmdLeftClick)`, but that might be a bit hard to
understand :-P) instead of `if (zoomBoth || cmdLeftClick)`.

björn

unread,
Feb 17, 2008, 2:02:04 PM2/17/08
to vim...@googlegroups.com
On 17/02/2008, Nico Weber <nicola...@gmx.de> wrote:
>

Hmmm...why not, that makes sense. I've pushed that patch too now.

/Björn

Brian McKee

unread,
Feb 19, 2008, 5:27:17 PM2/19/08
to vim...@googlegroups.com
On Feb 17, 2008 2:02 PM, björn <bjorn.w...@gmail.com> wrote:
> On 17/02/2008, Nico Weber <nicola...@gmx.de> wrote:
> > >>>> With the latest source code version you can make the green blob
> > >>>> button
> > >>>> zoom in both horizontal and vertical directions by setting the user
> > >>>> default MMZoomBoth. This is also documented in ":h macvim-prefs".


Thank you! I'll be bit before I try it - I've zero git experience
and a lot on
my plate at the second, but I'll be sure to do it at some point or when the next
snapshot is released.

Thanks again
Brian

Reply all
Reply to author
Forward
0 new messages