KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
to compile C programs and run it, I use ":make" but I would like to run the compiled program too if the compile is a success. I wrote au FileType c setlocal makeprg=g++\ %\ \&\&\ ./a.out in vimrc, that works, but I have a vim error when there's some mistakes in my code, so vim don't put the cursor on the good line. I get this error : E40: Can't open errorfile /tmp/vEtUQQ2/0 Is there a workaround, a fix or another way to achieve this ?
Tags (comma-separated)
Save Edits
Cancel