10

I assume the only documentation that comes with vim are about vim.

If I install plugins there will be documentations of the plugins as well.

But are there documentations for other languages in vim?

An example would be, say I am coding in python in Vim, and want to quickly look up list comprehensions in Python. It would be great if I can just type :h python-doc in Vim and the Python documentation is brought up in Vim documentation.

Other examples would be :h markdown to bring up markdown syntax etc.

Is this kind of thing already on the web? Are there such docs which I can download and :helptags? I tried to google but it didn't work, because for example if I google vim markdown documentation google thinks I want to know how to write markdown in vim and brings up links like the markdown plugin for Vim...

5
  • 2
    I don't think this exists, but it could be a really cool plugin.
    – DJMcMayhem
    Oct 15, 2016 at 16:55
  • 2
    Well, I don't know of any, and while this would be cool, it would be also a lot of effort to convert existing documentation to vim-help file. Oct 15, 2016 at 18:15
  • 1
    There are plugins which show the help for the current function while doing autocompletion (like in my question here), but I don't know of any like you describe.
    – muru
    Oct 16, 2016 at 4:32
  • 4
    Take a look at ref. There are many resources for it out there. A partial list of said resources has been compiled in the wiki. You'll need to do some leg work to make full use of it, but you'll never look back.
    – lcd047
    Oct 16, 2016 at 5:43
  • Just want to throw out there that gD can jump to the definition of a function that is defined in standard libraries if you are writing C code. I think that's kind of related to the question. Nov 18, 2016 at 0:13

1 Answer 1

2

Take a look at either

vim-plugin-viewdoc to view help inside vim (it supports a lot of sources and can be extended)

or investigate.vim which can be used to look up documentation in your browser.

For python there is also pydoc.vim.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.