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. > > Presumably the mvim URL handler opens in the existing (rather than a new) > MacVim window because it wraps the `open -a` mechanism?
Yes, using the "open" is like opening from Finder. 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 respect those. When opening a file from Terminal (with "mvim") you are actually starting a new Vim process manually and this process connects to the MacVim app which responds by opening up a new window. This is why "mvim" always opens a new window. (Maybe this is too much information, but there you go.) Björn -- 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 To unsubscribe from this group, send email to vim_mac+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.