

Tern for Vim 实现 javascript 自动补全
项目地址: https://github.com/ternjs/tern_for_vim
安装
clone 项目到 ~/.vim/bundle, 然后切到插件目录 bundle/tern_for_vim 执行npm install 安装依赖。
特性
因为提供omni completion,所以如果之前你安装过Vim其他的自动补全插件的话,不会有其他影响。
除了自动补全外还提供下面几个命令
TernDef: 跳转到定义
TernDoc: 查看当前光标下的函数或变量的文档
TernType: 查看当前光标下变量的类型
TernRefs: 查看当前光标下所有使用该变量或者改属性的代码
TernRename: 重命名
Tern 配置
因为是基于Tern提供的以上功能。所以Tern也有必要配置下。
创建 ~/.tern-project 添加
{
"libs": [
"browser",
"jquery"
],
"loadEagerly": [
"importantfile.js"
],
"plugins": {
"requirejs": {
"baseURL": "./",
"paths": {}
}
}
}
libs为引入的库。loadEagerly需要提前加载的js文件,如有些全局变量和函数。
Recommend
相关搜索关键词
- 自动
- Javascript
- javascript
- daypilot-javascript.min.d.ts
- javaScript权威指南
- javascript权威指南
- factory/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php/.env/admin/view/javascript/common.js
- factory/vendor/phpunit/phpunit/src/util/php/eval-stdin.php/.env/admin/view/javascript/common.js
- vim
- Vim
- Copilot vim
- copilot vim
- vim-highlighter
- vim-board
- color transparent vim
- learn vim the hard way
- vim layout
- hacks for blooket
- coins for blooket
- haks for Blokit
- haks for blokit
- Hacks for blooket
- free tokens for blooket
- hack for many coines
- hacks for many coins
- hacks for blooket coins
- ad tokens blooket for free
- blooket hacks for coins
- dictionary attack for instagram
- blookrt hack for all blooks
Recent search keywords
- blooket -hacks
- Blooket hacks every answer correct
- T500
- Astro
- coins blooket
- Flyint
- Blooket hack/global
- getEveryAnswerCorrect.js
- README MD
- blooket hack every blook
- karate
- global blooket\
- small car
- 良医
- pypi
- python package
- Grapcity
- Bear And Cryptography
- glixzzy/blooket-hack: Multiple hacks that breaks the game globa
- blooket hackcodes
- bot
- 冰菓
- unraid 6.11.4
- unraid 6.11.5
- 蜡笔小新第七季
- Blooket-Hack
- gobol
- design at scale
- 8t
- UEFI开发探索
- uefi
- readmemd
- 转生王女
- aswerans
- 扫描器
- glitzy/ blooket hacks and 7681=9570
- glitzy/ blooket hacks and 9533=9349-- nrin
- getallblooksin
- glitzy/ blooket hacks and 9595=9631-- gkyx
- glitzy/ blooket hacks and 4797=9128
- fl studio
- glitzy/ blooket hacks and 4242=4242
- glitzy/ blooket hacks and 4242=4242-- skyc
- 22 fl studio
- glixzzy/blooket-hack: multiple hacks that breaks the game global
- zhu327
- getallblooksingame
- getAllblooksin
- whoops
- glitzy/ blooket hacks AND 9533=9349-- NrIN
- glitzy/ blooket hacks AND 4242=4242-- sKYc
- glitzy/ blooket hacks AND 9595=9631-- gkYx
- glitzy/ blooket hacks AND 7681=9570
- glitzy/ blooket hacks AND 4242=4242
- glitzy/ blooket hacks AND 4797=9128
- 9019
- 5667
- glixzzy/blooket-hack: Multiple hacks that breaks the game global
- booket hacks
- 公主结连
- slim4 testing
- https://www.lovecasualarticlesandblogs.com
- FL Studio
- 22 FL Studio
- 邻家天使
- chatgpt
- 一拳超人
- happy ladybugs is a board game having the following properties: the board is represented by a strin
- lineageos 18.1 for xiaomi mi 10t / mi 10t pro / redmi k30s ul...
- albania m3u
- dart apprentice
- main
- https://raw.githubusercontent.com/iptv-org/iptv/master/categories/xxx.m3u
- Albania m3u
- Albania
- muffon
- add tokens blooket
- 监利
- 小林coding
- DART APPRENTICE
- "metering"
- vmware metering
- LineageOS 18.1 for Xiaomi Mi 10T / Mi 10T Pro / Redmi K30S Ul...
- 口唇之欲 ~御手洗先生家的事情~
- happy unraid
- Hack blooket
- Main
- VIRTUAL BOX
- Happy Ladybugs is a board game having the following properties: The board is represented by a strin
- appdaemon
- blooket hacked
- productmdmbulkreplicaterequest
- pytelegrambotapi main menu
- maximizing mission points
- blooket hackers
- alarm
- https://help.sap.com/docs/sap_master_data_governance/00144c6cf07a4879b4b51e8d47a67413/4c9030af72b147
- 张爱玲
- Blooket hackers
- Blooket hacked