Re: How do I open a file from the Terminal into MacVim's current window?

2010-03-26 Thread björn
On 25 March 2010 18:47, Andrew Stewart wrote: So to summarise, given a MacVim instance in the background, and focus in the Terminal: * `open -a MacVim.app filename1` will open filename1 in the existing MacVim window. * `mvim filename1` will open filename1 in a new MacVim window.

Re: How do I open a file from the Terminal into MacVim's current window?

2010-03-26 Thread Andrew Stewart
On 26 Mar 2010, at 16:08, björn wrote: MacVim works like this: each window runs its own Vim process. Opening a file from Finder results in the MacVim app getting a request to open a file (mvim:// handler requests also end up here). At this point MacVim will look at your preferences and

Re: How do I open a file from the Terminal into MacVim's current window?

2010-03-24 Thread Andrew Stewart
I have set the MacVim preference Open files from applications to in the current window and set the arglist.  This give the behaviour I want when double-clicking in the Finder -- but doesn't for the Terminal. Aha: making use of the above, I can get the result I want. In the Terminal: $

Re: How do I open a file from the Terminal into MacVim's current window?

2010-03-24 Thread björn
On 24 March 2010 12:50, Andrew Stewart wrote: I have set the MacVim preference Open files from applications to in the current window and set the arglist.  This give the behaviour I want when double-clicking in the Finder -- but doesn't for the Terminal. Aha: making use of the above, I can