New answers tagged

2 votes

Vim is creating a .exe file when I run some C++ code. How do I save it to a specific directory?

Your g++ command contains -o %:r; the -o flag for g++ sets the output filename, the % expands to the current buffer name in the Vim commandline, and :r is a modifier to remove any file extension. So ...
user avatar

Top 50 recent answers are included