Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Replace old make command with AsyncRun

Linwei edited this pageOct 16, 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 following '@' sign is a separator to indicate following string is the parameters of 'make'. The code above behaves exactly the same thing as ':make CFLAGS=-O2' but it will run in background now.

command!-bang -nargs=* -complete=file Make AsyncRun -program=make@<args>

If you add the line above to your .vimrc, you can have ':Make' to replace ':make' easily.

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp