Using mvim script, every call opens a new MacVim window.
Is it possible to change the behavior to open files
in a new buffer (and tab) instead of a new window?
Thanks,
Adam
> Using mvim script, every call opens a new MacVim window.
> Is it possible to change the behavior to open files
> in a new buffer (and tab) instead of a new window?
You can use `mvim -p *.c` to open all c files in the current folder
in tab Pages. If you want to open a file in an existing window, you
usually use the --remote-tab-silent parameter, which is only enabled
if +clientserver support is compiled in. But iirc this is not (yet?)
supported in OS X :-P
Nico
Using mvim script, every call opens a new MacVim window.
Is it possible to change the behavior to open files
in a new buffer (and tab) instead of a new window?
It's not too bad...the actual FEAT_CLIENTSERVER code in os_mswin.c is
about 600 lines, and there are only 54 places in the source that
check for FEAT_CLIENTSERVER.
Just saying ;-)
Nico
For the record: you can (as of MacVim r229) use --remote and friends
to accomplish this, e.g.:
mvim --remote-tab *.c
In Vim, take a look at the help on 'client-server', i.e.
:h client-server
/Björn