12

I assume the only documentation that comes with Vim is about Vim.

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

But is there documentation 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?

Friedrich
  • 1,846
  • 1
  • 11
  • 21
Y. Pei
  • 263
  • 1
  • 5
  • 3
    I don't think this exists, but it could be a really cool plugin. – DJMcMayhem Oct 15 '16 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. – Christian Brabandt Oct 15 '16 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 '16 at 04: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 '16 at 05: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. – Philipp Moers Nov 18 '16 at 00:13

1 Answers1

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.

laktak
  • 2,933
  • 13
  • 27