Configuring Windows 7 and gVim makeprg / shellpipe to display build results

I am trying to configure vim on windows to work the same way as on Linux. Basically, when I type ": make" in linux, I get makeprg output like streaming through vim itself.

In windows, I get a cmd hint that appears, but beyond vim. I need to switch focus to view the results until they are complete, and then they can be viewed in the quick fix window.

I tried to download a copy of "tee" and install shellpipe to | tee, but that hasn’t changed anything. Below are the corresponding settings in my vimrc, I use a ninja, but the same thing happens if I switch to nmake or something like that.

set makeprg=ninja\ -C\ build-ninja set shellpipe=2>&1\ \|tee set efm+=%Dninja:\ Entering\ directory\ `%f',%Xninja:\ leaving\ directory 
+4
source share
1 answer

I think this one is related to what you want, but provides only a partial solution, because it will not wait until the program finishes work:

set makeprg = start \ / min \ ninja \ -C \ build-ninja

Getting it to work will not be trivial (see comments), it seems like important oversight of the version of Windows Vim, since the start cannot be done from makeprg (see comments), only an internal (and more limited) start).

Full documentation on the launcher (which you seem to need to call somehow) you can find in this question

0
source

Source: https://habr.com/ru/post/1444009/


All Articles