All,
I've recently started doing some javascript coding. I have used the python-mode vim plugin, and I was looking for a javascript plugin with similar functionality.
I've got most of the important stuff already, so the thing I would most like is a plugin that can jump directly to the docs for a library built in. In python-mode, this is done by putting the cursor on a function call and pressing D
. It opens a new split with the contents of the doc.
Cursory google searching does not reveal anything similar for javascript/node.js so I would like to know if there is something available, or if I need to roll my own.
There's no such thing for JavaScript, I'm afraid.
Python-mode uses Python's built-in help('keyword')
but I'm not aware of such a thing in any JavaScript engine. Not even nodejs. I'd like to be proven wrong, though.
You could come up with something that calls https://developer.mozilla.org/fr/search?q=Date
when the cursor is on Date()
. But I don't think it's realistic to expect more.
Did you look over there?
If bringing the documentation up in a browser works for you, I created a Vim plugin called dochub.vim.
It will bring up documentation for CSS, DOM, HTML, JavaScript, JQuery, PHP, and Python by placing the cursor over a class, property, or method and typing JJ
.