Hi,
I am a huge fan of tern,and use tern-for-vim for nodejs code writing .
I am sorry this question may not relate directly to tern-node-express plugin,but I need your help to instruct me how to configure .tern-project file.
If I installed new packages via npm(global or local in project),how can I tell tern_for_vim to auto complete items in that package?
If I switched to a newer version of node, how to make tern_for_vim to auto complete the item that does not exist in the older version of node,but is included in the newer version?
For example, I have installed 2 version of node:
0.10.xx
4.4.2
In 0.10.xx,the execSync is unavailable,but it should appear in the 4.x version when I pressed dot after require statement:
var execSync = require( 'child_process' ).execSync;
So pls let me know the way to configure .tern-project for these two scenarios.
Hi, I am a huge fan of tern,and use
tern-for-vim
for nodejs code writing .I am sorry this question may not relate directly to
tern-node-express
plugin,but I need your help to instruct me how to configure.tern-project
file.npm
(global or local in project),how can I tell tern_for_vim to auto complete items in that package?If I switched to a newer version of node, how to make
tern_for_vim
to auto complete the item that does not exist in the older version of node,but is included in the newer version? For example, I have installed 2 version of node:In
0.10.xx
,theexecSync
is unavailable,but it should appear in the4.x
version when I presseddot
afterrequire
statement:So pls let me know the way to configure
.tern-project
for these two scenarios.Many thanks in advance.