1.0.0 • Published 6 years ago

node-vim v1.0.0

Weekly downloads
7
License
ISC
Repository
github
Last release
6 years ago

node-vim

open an vim editor in Unix-like system, notepad in windows or specified editor via nodejs.

Install

$ npm install node-vim --save

Usage

var nv = require('node-vim');
var option = {};
nv.editor(option).then(function(content) {
    console.log(content);
});
console.log('execute first');

synchronous version

var nv = require('node-vim');
var option = {};
var content = nv.editorSync(option);
console.log(content);