i have recently been forced to use the gtk version of gvim
on macosx and am desperately wishing to be able to start
it and have it appear with the size and position of my
choice automatically without me having to aim the the mouse
and click in order to position it. with the motif and athena
versions of vim i could rely on x resources to do this.
I use GTK2 vim GUI in Mac OS X and don't have this behaviour. Gvim
starts up pretty slowly for some reason (maybe it's loading stacks of X
libraries slowly or something), and it gives me this warning on the
terminal, so it can't be started in the background:
Xlib: extension "RANDR" missing on display
But it works, and I don't have to click at all. Maybe try downloading
and installing the latest X11.app from
http://xquartz.macosforge.org/trac/wiki
That might help. I know I installed a later one a while back to fix some
problem; can't remember what the problem was now, but it fixed it! Also,
perhaps check the X11.app preferences--maybe there's some option about
window placement or something that is set differently on your machine to
mine.
Once you get over that hurdle, the winsize/pos stuff should work fine.
It does for me. I have some plugin/script off the Vim Tips wiki that
keeps track of window sizes/positions and restores them, IIRC.
Just a couple of ideas!
Ben.
gtk vim takes a -geometry argument which i assumed was like
x11's standard -geometry option in that it lets you specify
the geometry of the window (i.e. its size and position).
however, i've just read the documentation for this option
(gui_x11.txt) and it seems that it only mentions the size.
it doesn't mention position at all.
would it be possible/acceptable to make the geometry option
argument handle the standard syntax (i.e. #x#[+-]#[+-]#) and
support specifiying the position of the window as well as its
size? is there any reason that it doesn't do this?
hmm, i've just looked at the code (gui_gtk_x11.c) and it does
parse the position part of the geometry argument and it does
try to use it in a call to gtk_window_move() but it doesn't
seem to be working. any idea why that might be?
i'd forget gtk options -- source a script that specifies
winsize and winpos -- will those work for you on the mac?
:h winsize
:h winpos
sc
they won't work on any platform. they only apply once the
window has already been realised. if i try these, then i
still have to aim the "mouse" and click. then the window
appears and then the winsize/winpos commands resize/move
the window. so they are of no use at all to me.
thanks anyway,
raf
p.s. i can't see any reason to forget gtk options since they exist.
but it would be nice if they worked.
--
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