1

私はこれのためにefmを書こうとしています:

file: app/assets/javascripts/topbar.js
  line 17, col 3, Missing semicolon.
  line 19, col 19, 'is_mobile' was used before it was defined.
  line 21, col 1965, Expected '{' and instead saw 'check'.
  line 25, col 18, 'onScroll' was used before it was defined.
file: app/assets/javascripts/trends.js
  line 2, col 55, Missing semicolon.
  line 6, col 27, 'trendTypeSelected' was used before it was defined.
  line 7, col 32, Expected '===' and instead saw '=='.
JSHint check failed

しかし、別の行にファイルの概念が欠けていると思います。誰かがこれで私を助けることができますか?

これは私がこれまでに持っているものであり、機能しません:

%-Pfile:\ %f,line\ %l\,\ col\ %c\,\ %m

ありがとう!

解決:

set efm=%-Pfile:\ %f,%*[\ ]line\ %l\\,\ col\ %c\\,\ %m,%-Q,%-GJSHint\ check\ failed
4

1 に答える 1

1

Vim は%P、解析されたファイル ( %f) をスタックにプッシュする を提供します。 を参照してください:help errorformat-separate-filename

したがって、エラー出力の場合、次のようになります%+Pfile: %f,...

于 2013-07-12T10:55:27.203 に答える