I want to use Vim as a simple c++ editor in windows (I have no experience with Linux). Nothing fancy, just want to get things started.
To compile a .cpp file from CMD I have to run a batch file in the CMD and then I can compile and run the program, i.e g++ -o program program.cpp
.
I want to do this directly from Vim, like a custom command that does both runs the specific batch file and the run command.
I am completely beginner in Vim and currently have no idea what to do next. Thanks for helping me.
Edit :
All i want is a way to open Windows CMD then Run my batch file and then run g++ -o program program.cpp
. How can i do that with single command in Vim.