vimerrorformat

need examples for %s in errorformat of vim


this looks like simple question, anyone know what does the %s mean for errorformat option in VIM? The help text in vim is not clear to me, I need an example to understand it.


Solution

  • %s is for cases where:

    For example, the following compiler output:

    foo/bar.xml:     <foo bar="baz">hamburger</foo>
    

    could be consumed with the following &errorformat:

    set errorformat=%f:%\\s%s