Vim can parse compilation errors when it is passed as an error file using the argument
-q. It can also parse the errors produced by running
:make. In both these cases, the file path, line and column number of errors can be parsed and traversed using
:cnext or displayed in the QuickFix window.
errorformat is the list of error formats that Vim uses to parse and recognize errors from input text. The default error format in Vim can be seen by trying the command
:set errorformat?. The items in the list of error formats are separated by a comma. When separated, these are the components of the list:
This default error format is set in Vim as
DFLT_EFM based on the platform as seen in the source code here. Other error formats can be set at runtime based on the
compiler flag. The different options for compiler and their corresponding error formats can be seen listed in the files in the directory
/usr/share/vim/vim74/compiler. In fact, the default error format string set on Linux is the same as that in
For more on error format see
:help errorformat in Vim.
Tried with: Vim 7.4 and Ubuntu 14.04