技巧105-不用离开Vim也能编译代码
在Vim中编译工程
- 在c或c++工程中,进入Makefile所在目录,然后在命令行模式输入:make 即可编译工程。
- :make! 结尾的!将指示Vim只更新quickfix列表,而不跳到第一处错误。
- :cnext 可以跳转到quickfix列表的下一出错位置。
- :copen 可以打开quickfix列表。
- :h quickfix 查看quickfix帮助。
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help