Hi Björn,
On Oct 11, 2008, at 2:46 AM, björn wrote:
A much better way of having each window fully zoomed on startup is to add the line:set lines=53 in your .gvimrc file, where "53" should be substituted for a numbergreater or equal to the maximum number of lines that fits on your screen.
This is what I had been doing, but I use my Vim configuration across many different machines, so finding a suitable choice for 'lines' is difficult. I had been using "set lines=999", which gives me a properly sized but improperly located window. It is off the bottom of the screen by a small amount and I have to move it up to be adjacent to the menu bar (perhaps there is another patch I might work on...).
Also, "set lines=" sets the un-zoomed size of the window. If I set the un-zoomed size to be the same size as the screen, then zooming the window has no effect. I typically want to work zoomed, but there are times when I un-zoom the window such as when dragging or cut-and- pasting between another applications. So for me, zooming is actually the best way to work, though I understand I may be in the minority.
What else kind of Apple script support does MacVim automatically gain with your patch, do you know? Can you come up with any other use for this patch? I'm not very familiar with Apple script, which is why I ask.
I myself am not an AppleScript guru either, but I think this gives basic support such as manipulating the windows, activating and quitting the app, etc. It is probably possible to drive text input as well, so one may be able to use MacVim in an Automator workflow, for instance. I will investigate some other possibilities and post again if I come up with something more useful.
Thanks, Jason
smime.p7s
Description: S/MIME cryptographic signature
