Skip to content

Replace old make command with AsyncRun

Linwei edited this page Oct 15, 2016 · 6 revisions

You can replace ':make ...' command to:

:AsyncRun -program=make ...

This option will allow asyncrun reading the content of &makeprg and composite it with following command into a new one. And old ':make' command can be replaced with this option now:

:AsyncRun -program=make CFLAGS=-O2

The code above behaves exactly the same thing as ':make CFLAGS=-O2' but it will run in background now.

Clone this wiki locally