Closed TornaxO7 closed 3 years ago
remove your quotation:
:AsyncRun -mode=term -pos=tab -cwd=$(VIM_FILEDIR) -save=2 gcc -lm % && ./a.out
It works, thank you!
also I updated asyncrun.vim to mute this error.
I found a bug in your command, %
will be interpreted to a file name relative to vim's working directory, if you specify a different directory by -cwd=?
, the %
should be replaced as `$(VIM_FILENAME)', the correct version is:
:AsyncRun -mode=term -pos=tab -cwd=$(VIM_FILEDIR) -save=2 gcc -lm "$(VIM_FILENAME)" && ./a.out
I had no problems with this command yet, so I didn't change it but thank you for this hint!
Example code (language:
C
):Run with:
Getting the following error message:
It works, if I remove the
-cwd="$(VIM_FILEDIR)
part of the command.