Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jump to node documentation in vim

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.

like image 249
Spencer Rathbun Avatar asked Aug 21 '26 04:08

Spencer Rathbun


1 Answers

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.

like image 72
Steve McKinney Avatar answered Aug 23 '26 19:08

Steve McKinney



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!