A simplified version of my question is how can I get a command like the following.
gvim --remote-tab-silent -c mak
When I run this command, I hope to open a new tab and run the make command. However, there are actually two new tabs: "-c" and "mak"
Is there any way to do this? My ultimate goal is to be able to run such a command inside vim to give me asynchronous output.
!gvim --remote-tab-silent -c mak
Thanks in advance.
- EDIT - I found documentation for --remote that explains how to make a remote command with opening a file. The syntax seems to apply to the remote tab.
To do what I want, I now use
gvim --remote-tab-silent +mak MakeOutput
Similarly inside vim I can use
! gvim --remote-tab-silent + mak MakeOutput
It automatically opens the first error in the file for me, which is convenient, I would think :)
source share