vim grepformat用于node-jslint输出

时间:2012-02-02 04:49:31

标签: vim jslint

以下错误输出的Vim grepformat是什么(来自node-jslint的错误输出)?

static/js/t.js
 #1 Expected 'this' at column 5, not column 3.
    this.JSON2 = {}; // Line 44, Pos 3
 #2 Expected 'use strict' at column 5, not column 3.
    "use strict"; // Line 48, Pos 3

1 个答案:

答案 0 :(得分:1)

https://stackoverflow.com/a/8706966/433662

找到答案

二手......

setlocal efm=%-P%f,
             \%E%>\ #%n\ %m,%Z%.%#Line\ %l\\,\ Pos\ %c,
             \%-G%f\ is\ OK.,%-Q

加:make:cw