npm.io
0.1.0 • Published 10 years ago

edit-in-vim

Licence
MIT
Version
0.1.0
Deps
1
Vulns
2
Weekly
0
Stars
2
var edit = require('edit-in-vim')
var result = edit('placeholder string')

/*
  the user is redirected to their default editor which will show a file containing
  the string "placeholder string".

  suppose he replaces that with the name of his favorite food: "chocolate"
*/

console.log(result) // will output "chocolate"
npm install --save edit-in-vim

Keywords