1

I am trying to install ternjs on vim.

I am on OS X Yosemite 10.10.5.

What did I do :

1.Install YouCompleteMe.

2.Install Nodejs v4.2.3 via the pkg.

3.Run npm install in the tern_for_vim directory (nothing seems to happen).

gy@~/.vim/plugged/tern_for_vim$ npm install
gy@~/.vim/plugged/tern_for_vim$

4.Create a .tern-project file in my javascript application directory (which contains only on test.js file) :

$ cat .tern-project
{
    "libs": [
        "browser",
        "underscore",
        "jquery"
         ],
         "plugins": {
          }
}

5.Touch test.js with the demo code:

//Use ctrl-space to complete something
co
document.body.a

// Put the cursor in or after an expression, press ctrl-i to
// find its type

var fno = ["array", "of", "strings"]
var bar = foo.slice(0, 2).join("").split("a")[0]

// Works for locally defined types too.

function CTor() { this.size = 10 }
CTor.prototype.hallo = "hallo"

var baz = new CTor

6.Try to use :TernRename, :TernDoc..etc. Example of output for :TernRename

new name? fno urlopen error [Errno 61] Connection refused

What did I forgot?

GermainGum
  • 1,349
  • 3
  • 15
  • 40

0 Answers0