C++ and Vim

Building C++ Programs using Vim and gcc
The easiest approach is using the Vim option. You set the option: :set makeprg=g++\ % Note that spaces must be escaped in the  option (annoying Vim misfeature).

You can then build using the command: :make The errors will automatically be placed in the quickfix window. You can jump to an error using enter in the quickfix window, and select an error in the quickfix list using: :cnext :cprevious

Saving Build Options using Utl.vim
To avoid having to write a build script like a Makefile, you can write the appropriate  setting in a Utl vimscript URL. Utl is the Universal Text Linking plugin for Vim. Here is a simple example: //  You can then set  by placing the cursor over the URL and pressing.

- See also Build Systems