I installed ternjs_for_vim plugin but can't figure out how to use it properly. RTFM didn't help. What I get is list random JS-methods in the omni-completion. But things like completing for Node.JS modules doesn't work. For example if I type:
var fs = require('fs');
fs.
and after .
there is no relevant completion (like methods readFile
, readFileSync
etc.)
Here is my .tern-project file:
{
"libs": [
"underscore",
"jquery"
],
"plugins": {
"node": {}
}
}