Mr. Shawn H. Corey wrote:
Hi,

I'm running Ubuntu 6.10 on a PowerBook 4 under GNOME. Is there any command I can put inn my .gvimrc that will maximize the window at startup? I tried:

  :autocmd GUIEnter * simalt <F10>

But simalt does not work in Linux.

I may not know much about GUIs but ever one I read so far has an API call that maximizes the window. So, what's the best way to do this?



The portable way to maximize gvim at startup (well, with maybe at times a one-character-cell rounding error in the size of the Vim screen) is

        if has("gui_running")
                set lines=9999 columns=9999
        endif

The above (which is in my .vimrc) used to work for me on Windows, and still works for me now that I'm on SuSE Linux.

Like the 'guifont' setting (and maybe others), 'lines' and 'columns', when set in the vimrc, are "remembered" by gvim, and applied at GUI startup.


Best regards,
Tony.
--
With a gentleman I try to be a gentleman and a half, and with a fraud I
try to be a fraud and a half.
                -- Otto von Bismark

Reply via email to