Monday, July 19, 2010

Re: Does gvim has the function to maximize the window?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/19/2010 06:16 PM, Ricky J. Wu wrote:
> H Xu wrote:
>> On Sun, Jul 18, 2010 at 7:29 PM, John Beckett <johnb.beckett@gmail.com>wrote:
>>
>>> H Xu wrote:
>>>> Is there a way to maximize the window of gvim?
>>>
>>> See:
>>> http://vim.wikia.com/wiki/Maximize_or_set_initial_window_size
>
>> But this make my gnome almost crash....
>
> try this for gnone:
>
> sudo apt-get install wmctrl
>
> add function into .vimrc:
> function Maximize_Window()
> silent !wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz
> endfunction
>
> define alias in .bashrc:
> alias gvim='gvim -c "call Maximize_Window()"'
>
> or call gvim in:
> gvim -c "call Maximize_Window()"

Hints:

if has("gui_running")
call Maximize_Window()
endif


- --
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxEKmgACgkQvf41sEptMqBCcgCgk4rJDolJyj+wao1IEog3CxZF
zRYAnAjJtnnj5J+Gwad62d1vfmM5a42A
=+III
-----END PGP SIGNATURE-----

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