node-makeprg

0.0.1 • Public • Published

node-mkprg for vim

Install

npm install -g node-mkprg

Usage

node-mkprg [file]

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 javascript.vim:

let &makeprg="node %"

by

let &makeprg="node-makeprg %"

TODO

Pull request vim-nodejs-errorformat and use environment variable/vim configuration variable to determine which makeprg to use.

Readme

Keywords

none

Package Sidebar

Install

npm i node-makeprg

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • olalonde