我想在我的项目中设置tern-vim,并点击此链接https://github.com/ternjs/tern_for_vim/blob/master/doc/tern.txt。 安装完成后,我在项目的根目录下创建了一个.tern-project文件,如下所示。
{
"libs": [
"browser",
"jquery"
],
"loadEagerly": [
"importantfile.js"
],
"plugins": {
"requirejs": {
"baseURL": "./",
"paths": {}
}
}
}
当我用vim命令打开一个js文件时,我不能使用任何tern命令,如下所示:
|:TernDoc|...................... Look up Documentation
|:TernDocBrowse|................ Browse the Documentation
|:TernType|..................... Perform a type look up
|:TernDef|...................... Look up definition
|:TernDefPreview|............... Look up definition in preview
|:TernDefSplit|................. Look up definition in new split
|:TernDefTab|................... Look up definition in new tab
|:TernRefs|..................... Look up references
|:TernRename|................... Rename identifier
我会收到Not an editor command
错误。我是否需要进行任何其他配置?