node-vim-colorscheme
v0.0.4
Published
can use vim color schemes
Downloads
1
Readme
node-vim-colorscheme
Installation
$ npm i node-vim-colorscheme
Usage
var vimcs = require("node-vim-colorscheme");
vimcs.init({
useCache: true
}, function(){
console.log(
vimcs("Todo")("vim TODO color")
);
});
// Node.js v0.12
var vimcs = require("node-vim-colorscheme");
vimcs.initSync({
useCache: true
});
console.log(vimcs("Todo")("vim TODO color"));
API
- vimcs.init(options, callback)
- vimcs.initSync(options)
options
-useCache
- default:false
cachePath
- default:./vimcs
filetype
- e.g.js
- vimcs(colorName, option, attr)
colorName
- highlight name. e.g.String
,Function
. See more, in Vim :highlight commandsoption
-fg
orbg
. default: bothattr
-boolean
. default:false