How to control error output format in Vim quickfix?

I took this script - http://www.vim.org/scripts/script.php?script_id=891 - and changed it to display error numbers (for example, not only Cor R, but C0301or R0202), adding --include-ids\ yto the command line that calls pylint and changing the line with an error from

CompilerSet efm=%+P[%f],%t:\ %#%l:%m,%Z,%+IYour\ code%m,%Z,%-G%.%#

to

CompilerSet efm=%+P[%f],%t%n:\ %#%l:%m,%Z,%+IYour\ code%m,%Z,%-G%.%#  

Simple enough. But in the error output, I get C 301instead C0301. This is a minor issue, but I'm still puzzled - there seems to be no way to correctly display such error tags. Did I miss something?

While recording, I also noticed that it changes the error codes Eto errorand Wto warning. How can I control the output format for :clistoverall? Is it hard-coded?

+3
source share
1 answer

It is not hard-coded, it can be configured using the "errorformat" option.

0
source

All Articles