In order to get node.js completion with tern, you will need a .tern-project
file. A sample file is included below.
Place the .tern-project
file inside your project directory. You can also have a global ~/.tern-project
file located in your home directory
- Another installation guide http://ahalbert.nfshost.com/Tech/Installing_Tern_for_Vim.html
- Tern keyboard shortcuts in vim http://usevim.com/2013/05/24/tern/
- PDF of shortcuts http://usevim.com/files/tern_keyboard.pdf
@joeyzhao0113 hey man you most probably don't have a plugin manager which has
Bundle
command or don't have any plugin manager at all. google around there are plenty. I use NeoBundle so i'd have to doNeoBundle 'marijnh/tern_for_vim'
. If you were to use Vundle, for example, then it'sPlugin 'marijnh/tern_for_vim'