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: > > -------- > > " a short test script > > maca newWindow: > > edit ~/ToDo/todo > > "end test > ------- > > When I source this file, it immediately opens the "todo" file in > the current window, then opens a new window on top. > > I've tried putting a cycle windows in between the newWindow and the edit > and a few other things, without success. > > Where can I find the missing part? I'm happy to read, but apparently > don't know what to look for.
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 --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_mac" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
