Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 2.49 KB

File metadata and controls

39 lines (30 loc) · 2.49 KB

'errorformat' cheatsheet

Testing

Do :call wincent#debug#compiler() to test a compiler plugin (:h write-compiler-plugin).

Formats

Symbol Meaning
\ (backslash followed by space) space
%f filename
%l:%c line:column
%\\s \s (whitespace)
%# * (zero or more)
%\\+ + (one or more)
%trror error type (1-char)
%tarning warn(ing) type (1-char)
%tnfo info type (1-char)
%m error message
%-P%f (P)ush (f)ile onto stack; '-' means do not include line in output
%-Q pop the last file from the stack; '-' do not include line
%-G ignore this message
%E start multi-line message
%.%# .*
%[] character class
%^ ^ (ie. %[%^...] = [^...])

See :h error-file-format for more.

How formats work:

  • Whitespace after commas is ignored.
  • Patterns match entire lines by default (ie. %^ and %$ are not generally useful).
  • For each line in output, formats are tried one after another until one matches.

See also