Skip to content

Instantly share code, notes, and snippets.

@nisaacson
Created February 26, 2014 17:23
Show Gist options
  • Save nisaacson/9234157 to your computer and use it in GitHub Desktop.
Save nisaacson/9234157 to your computer and use it in GitHub Desktop.
Use tern with vim for node.js development.
{
"libs": [
"browser",
"underscore",
"jquery"
],
"plugins": {
"node": {}
}
}
"""""""""""""""""
" Tern settings
"""""""""""""""""
Bundle 'marijnh/tern_for_vim'
let g:tern_show_argument_hints='on_hold'
" and
let g:tern_map_keys=1
@argshook
Copy link

so i had this same issue again and googled my own answer from half a year ago
which didn't help...

make sure you use tern with filetype=javascript.
tern doesn't register its commands for other filetypes, in my case it was typescript.
obvious now but easy to forget when often switching between js & ts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment