My vim and mingw are installed on the E drive. When I write the c file, the command in vim:w 1.cwill generate 1 inE:\vim\vim74.c, and using mingw also requiresgcc + c file location, but the generated a.exe is saved inC:\Users\user>.
Is there any way to make it easier for me to operate? For example, I only need to type the command
w 1.c
in vim Type the command
gcc 1.c
in cmd a.exe
Can it be compiled and run?
Use cmd to start vim and mingw, and the target file will be generated in the directory pointed by powershell.
Or use Linux