On Wed, May 27, 2009 at 05:56:47PM +0200, björn wrote: > > 2009/5/26 John Velman: > > > > I'd like to write a plugin to open a certain file in a new > > osx window (and switch to that window) (unless it is already open.) > > > > I've tried the following script: > > > > -------- ---snip > > Hi John, > > There is no "proper" way to do what you ask for. In fact, I can't > really think of any way of accomplishing this short of ":!mvim > filename". > > Trying to cycle windows after opening a new one won't work since it > takes a while for ":maca newWindow:" to complete. > > > Björn > Thanks, Björn. I tried to look for a way to "wait a little bit" before cycling the windows, but couldn't find a simple way to do that either. Probably that would be a bad idea anyway because of uncertainties in the time interval required.
On the other hand, !mvim filename should be fine for me. I thought I had tried it, but it turns out that what I tried was "!open -a MacVim filename", which didn't work. Thanks again! John V. > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_mac" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
