edenzik / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

[FR] Start maximized #209

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Start mvim

What is the expected output? What do you see instead?

Maximized window, when the option has been set through defaults.write

What version of MacVim and OS X are you using (see "MacVim->About MacVim"
and  "Apple Menu->About This Mac" menu items, e.g. "Snapshot 40, 10.5.6
Intel")?

Mac Vim 1.2 (33.3)
Max OS 10.5.8

Please provide any additional information below.

Hi, I'd like to have an option to start mvim maximized by default. I always
have to click the (+) button after start.

Thanks !

Original issue reported on code.google.com by philippe...@gmail.com on 28 Aug 2009 at 9:58

GoogleCodeExporter commented 9 years ago
Only file bugs to the Issue tracker, please!  Questions like this belong to the
vim_use group.

The help files are your friend, use ":h" or ":h 'lines'" in this case.

Adding "set lines=100" to your ~/.gvimrc will do the trick.

Original comment by bjorn.winckler@gmail.com on 28 Aug 2009 at 11:14

GoogleCodeExporter commented 9 years ago

Original comment by bjorn.winckler@gmail.com on 28 Aug 2009 at 11:14

GoogleCodeExporter commented 9 years ago
thank you bjorn.winckler,

I've seen some "enhancements" tickets there, I was confused. I'll post the 
mailing
list next time. Anyhow, the "trick" is almost working, the window is not really
maximed (see screenshot). If I maximize the window, I don't get this margin on 
the left. 

Thanks

Original comment by philippe...@gmail.com on 28 Aug 2009 at 11:19

Attachments:

GoogleCodeExporter commented 9 years ago
set lines=999
set columns=999

Once again: you should get acquainted with the help files and you'll be able to 
solve
these types of problems on your own.  Try ":help" and go from there.

Original comment by bjorn.winckler@gmail.com on 28 Aug 2009 at 12:11

GoogleCodeExporter commented 9 years ago
Thanks, I've found the colomns option too, but still, the window is not 
maximed, I
have the same result as the screenshot attached before :(

Original comment by philippe...@gmail.com on 28 Aug 2009 at 1:05

GoogleCodeExporter commented 9 years ago
The screenshot is unclear.  Are you saying that if you click the green zoom 
button
the window will become even larger when you have "set lines=999 columns=999"?

Original comment by bjorn.winckler@gmail.com on 28 Aug 2009 at 1:25

GoogleCodeExporter commented 9 years ago
Exactly ! If you at the screenshot, you'll see on the top left corner the window
under gvim. Perhaps it's better on the screenshot attached, you can see my 
firefox
window under MacVim. On the right side, the window is a little too far on the 
right
(Picture 13.png). 
If click Maximize, then the window will occupy the whole screen, as expected. I 
think
the two options (lines & columns) are working as expected, the problem is more 
on Mac
OS X side, in which Maximize seems to be an odd world (and a nightmare with 
Safari
for ex).

Thanks
Philippe

Original comment by philippe...@gmail.com on 28 Aug 2009 at 1:33

Attachments:

GoogleCodeExporter commented 9 years ago
Anyway, If I move the window to be exactly where I want it to be, and I quit, 
the
window position gets saved, and my window is now correctly placed at startup. 
It's a
workarround !

Original comment by philippe...@gmail.com on 28 Aug 2009 at 1:34

GoogleCodeExporter commented 9 years ago
Just to make sure I understand, try this:

1. Open a new window (with "set lines=999 columns=999" in your .gvimrc)
2. Enter ":set lines?".  What does it say?
3. Enter ":set columns?".  What does it say?
4. Click the green zoom button.
5. Repeat steps 2 and 3 -- did the numbers change?

As far as I can tell from your report, in step 5 the same numbers will be 
reported,
so the problem is only that the window that opens in step 1 is a bit off the 
screen
to the right, leaving a small gap on the left side of the screen.

Am I correct in my assumptions?  If so, this is indeed a valid bug and I'll fix 
it.

Original comment by bjorn.winckler@gmail.com on 28 Aug 2009 at 1:45

GoogleCodeExporter commented 9 years ago
Hi,

1. Done
2. lines=58
3. columns=237
4. Done
5. lines=60 & columns=237

Sorry, they don't match !
Just in case, here's my .gvimrc config file :

" :colorscheme ir_black
:colorscheme darkblue

" Font
set guifont=Monaco:h10.00

" No audible bell
set vb

" No toolbar
set guioptions-=T

set lines=999.
set columns=999
~                   

Thanks
Philippe

Original comment by philippe...@gmail.com on 28 Aug 2009 at 2:19

GoogleCodeExporter commented 9 years ago
That was unexpected.

What is the resolution of your screen?
Have you got the Dock hidden or not?  (If not, can you hide and see if that 
makes a
difference?)

Original comment by bjorn.winckler@gmail.com on 28 Aug 2009 at 2:37

GoogleCodeExporter commented 9 years ago
I've tested on a mac book pro with a 1440X900 screen.
I'll post in a few minutes the results with my imac.

Original comment by philippe...@gmail.com on 28 Aug 2009 at 3:59

GoogleCodeExporter commented 9 years ago
On an imac with 1920x1200 screen :

lines = 82
columns = 317

and same after having maximized the window.

Original comment by philippe...@gmail.com on 28 Aug 2009 at 4:03

GoogleCodeExporter commented 9 years ago
I can't reproduce the problem with the window not opening fully maximized on my
1680x1050 screen and I've tried quite a few different font sizes.

However, I've fixed the bug where the window sticks out on the right (I could
reproduce that) and it is possible that this fixes the other bug as well.  So, 
I'll
ask you to wait for the next snapshot and try again when I release that.  Please
report back here at that time.  Thanks.

Original comment by bjorn.winckler@gmail.com on 28 Aug 2009 at 4:41

GoogleCodeExporter commented 9 years ago
Thanks a lot !

Dub question : will you warn me when the new snapshot is ready, or do I have to
follow a feed somewhere ?

Original comment by philippe...@gmail.com on 28 Aug 2009 at 5:10

GoogleCodeExporter commented 9 years ago
If you have automatic updating enabled (and you are running the snapshot, not 
the
stable version) in the MacVim prefs then you'll get a notification, but this 
usually
comes about a week after I release the snapshot.  I announce things first on the
vim_mac Google group if you want to get notified as soon as possible.

In this particular case I can ping this issue as well so you'll get a 
notification
(if I remember).

Original comment by bjorn.winckler@gmail.com on 28 Aug 2009 at 5:40

GoogleCodeExporter commented 9 years ago
A little update :

MacVim doesn't start maximized on my mbp using snow leopard.
It starts on the second display on my imac with snow leopard.

thx

Original comment by philippe...@gmail.com on 10 Sep 2009 at 9:18

GoogleCodeExporter commented 9 years ago
Have you tried my custom Snow Leopard binary?  You can find it here:

http://b4winckler.wordpress.com/2009/09/02/macvim-on-snow-leopard/

That binary includes the patch I mentioned above and it also automatically 
restores that window size when you 
restart, so there should be no need for "set lines" and "set columns".  Try 
deleting those "set" lines from your rc-
files and see how it works.

Original comment by bjorn.winckler@gmail.com on 12 Sep 2009 at 8:01

GoogleCodeExporter commented 9 years ago
Works great !

Thanks !

Original comment by philippe...@gmail.com on 12 Sep 2009 at 9:37

GoogleCodeExporter commented 9 years ago
The above mentioned patch was included in snapshot 50.

Original comment by bjorn.winckler@gmail.com on 24 Nov 2009 at 3:55