let errors = []
" Errorline(ファイルパス, エラーのライン, エラーのタイプ, エラー文)
call add(errors, Errorline('hogehoge.js', 0, 'Notice', 'ここにエラー文を追加'))
setlocal errorformat=%f:%l:%m
cgetexpr join(errors, "\n")
copen
function! Errorline(file, line, type, txt)
return a:file.':'.a:line.':[ '.a:type.' ] '.a:txt
endfunction
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme