I am new to Vim and installed tern for vim: https://github.com/ternjs/tern_for_vim
I would like to use the command TernDef
to jump to the definition of a function.
I tried to put the cursor on a function name and enter :TernDef
but that does not work:
E492: Kein Editorbefehl :TernDef
Does "command" mean something different than the ":"-commands?
Key shortcuts for tern_for_vim can be enabled with:
"enable keyboard shortcuts
let g:tern_map_keys=1
Source: http://www.dotnetsurfers.com/blog/2016/02/08/using-vim-as-a-javascript-ide/
The article above does not tell me which key shortcuts are mapped to the tern commands. How can I find out?
I use gVim 8.1 on Windows7 and cloned the tern_for_vim plugin to
C:\Users\eis\vimfiles\pack\mypackages\start\tern_for_vim
Furthermore, I set the windows system environment variable HOME to C:\users\eis
Related question: How to setup tern-vim in my project?