mingw - How to set the saving location of generated files in gvim/vim?
大家讲道理
大家讲道理 2017-05-16 16:40:49
0
1
506

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?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all (1)
世界只因有你

Use cmd to start vim and mingw, and the target file will be generated in the directory pointed by powershell.

Or use Linux

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!