Poor man's Syntastic

2 Points

Romain Lafourcade Romain Lafourcade

10 years ago

JavaScript syntax-checking on write, without plugins.

setlocal errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m,%-G%.%#
setlocal makeprg=jshint
command! -buffer Make silent make % | silent redraw! | silent cwindow | silent wincmd p
autocmd! BufWritePost <buffer> Make