compile directly from vim

后端 未结 6 1183
独厮守ぢ
独厮守ぢ 2021-01-31 05:43

I\'d like to compile cpp file w/o turning off vi.
I know the :!g++ file.cpp but I prefer :make so I added this line in .vimrc file

6条回答
  •  猫巷女王i
    2021-01-31 06:34

    I should change C,Cpp into c,cpp, then it works fine.

    thank you all, especially Rob Wells, your answer helped me a lot. thank you.

提交回复
热议问题