On Fri, Nov 13, 2009 at 08:24:07PM -0800, Jason wrote:
>
>
> I would like to set the initial window size and position of Gvim in
> Ubuntu. In my .vimrc file, I have:
> if has("gui_running")
> " GUI is running or is about to start.
> " Maximize gvim window.
> set lines=99 columns=100
> else
> " This is console Vim.
> if exists("+lines")
> set lines=99
> endif
> if exists("+columns")
> set columns=100
> endif
> endif
>
> I tried adjusting these numbers but it does not seem to change the
> size of Gvim window. Any hints for me?
>
> Thank you.
I found the easiest way is to just set an alias in your shells rc and
use the geometry argument.
E.g In ~/.bashrc:
alias gvim="gvim -geom 80x30"
PS. Are you sure you want so many lines and columns? Your console is
likely to only be 80x25
Regards,
--
Frank
Contact info: http://www.shute.org.uk/misc/contact.html
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---