I have a small in-app feature where I can open my application's Lua
scripts with the default text editor registered in the system. I also
like to open the Lua scripts to a specific line number if I detect an
error. With MacVim, I invoke it with command line switches: -g +
(line_number)

This works great if the file is not already open. If the file is open,
Vim prompts me there is a .swp file and allows me pick an action. But
in this case, what I would prefer is that Vim just silently bring the
already existing open window to the front (ideally with the correct
tab selected if tabs are in use). Gold star if I can also get this
already open window to move to the requested line number.

Is there any way to achieve this? Perhaps there is some special
command line argument I can use to suppress prompts and already does
what I want? Or if not, is there an AppleScript way to control this?
(Incidentally, I'm working on a Lua/Cocoa bridge which has Scripting
Bridge support so in theory, I may be able to write a Lua script to
control this for me.)

Thanks,
Eric

-- 
You received this message from the "vim_mac" 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

Reply via email to