gvim window size on Windows

124 views
Skip to first unread message

meino....@gmx.de

unread,
Jan 31, 2010, 10:38:18 PM1/31/10
to vim...@googlegroups.com

Hi,

at work I am using gvim on Windows.

Is it possible to instruct gvim to open in full size
(whole screen) instead of a quarter of the screen size???

I am tired of clicking the title bar each time I start
gvim...

Thank you very much for any help in advance! :)

Have a nice week!
Best regards,
mcc


--
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.

Gene Kwiecinski

unread,
Feb 1, 2010, 12:03:38 AM2/1/10
to vim...@googlegroups.com
>Is it possible to instruct gvim to open in full size
>(whole screen) instead of a quarter of the screen size???

Ancient tip that's been done to death, no?

Set your rows/cols to 9999 or something huge, should max out to the actual screen dimensions. Or there's the simalt trick to maXimise it, as if you typed alt-space/x.

Either one worx.

KKde

unread,
Feb 1, 2010, 12:26:51 AM2/1/10
to vim_use

>  at work I am using gvim on Windows.
>
>  Is it possible to instruct gvim to open in full size
>  (whole screen) instead of a quarter of the screen size???
>
>  I am tired of clicking the title bar each time I start
>  gvim...

If you are opening gvim from shortcut then right click on the shortcut
and click on properties and then in Run field select Maximized (in
drop down menu). I hope this solves your purpose.

Regards,
Kkde

Tony Mechelynck

unread,
Feb 1, 2010, 2:59:12 AM2/1/10
to vim...@googlegroups.com

The simalt trick is locale-dependent, since the key for Maximize is not
X in every menu language. In addition, it is win32-only (if someday you
migrate to Linux it will stop working). OTOH,

:set lines=999 columns=999

(in your gvimrc, or at the GUIEnter event, or bracketed by :if
has('gui_running') in your vimrc) should work on all systems and
languages. It should appear _after_ you set the 'guifont', since
changing the font may change the size of the character cell.

Best regards,
Tony.
--
Watson's Law:
The reliability of machinery is inversely proportional to the
number and significance of any persons watching it.

Ben Fritz

unread,
Feb 1, 2010, 9:40:29 AM2/1/10
to vim_use

On Jan 31, 11:03 pm, Gene Kwiecinski <gkwiecin...@dclab.com> wrote:
> Or there's the simalt trick to maXimise it, as if you typed alt-space/x.
>

That would be:
" maximize Vim window
autocmd GUIEnter * simalt ~x

...in your _vimrc or _gvimrc

meino....@gmx.de

unread,
Feb 1, 2010, 1:05:28 PM2/1/10
to vim...@googlegroups.com
KKde <khekade...@gmail.com> [10-02-01 18:26]:
> --
> You received this message from the "vim_use" maillist.
> For more information, visit http://www.vim.org/maillist.php
>

Thanks to you all for your helps !

Vim for Editor!

Have a nice week!
best regards,

Reply all
Reply to author
Forward
0 new messages