Node-makeprg can be used as the script to run when using Vim's make command.
Want to see pretty graphs? Log in now!
npm install node-makeprg
|2||downloads in the last week|
|4||downloads in the last month|
|Last Published By|
|Version||0.0.1 last updated 11 months ago|
node-mkprg for vim
npm install -g node-mkprg
This will attempt to find a package.json with a start script in parent directories. If it is found that command is executed.
Otherwise, the file is executed with
node in the current directory.
Using with Vim
Install the Node.js error format plugin: https://github.com/felixge/vim-nodejs-errorformat
Change the following line in
let &makeprg="node %"
let &makeprg="node-makeprg %"
Pull request vim-nodejs-errorformat and use environment variable/vim configuration variable to determine which makeprg to use.