search

Home  >  Q&A  >  body text

When using Vim to write Python programs under Linux, can "query the help content of Python, that is, Python-doc" be done like "vim-doc"?

[Description]
For example, to view a certain help content of Vim, you can :h help-content. Is it possible to do this when viewing Python-doc?
(I am now viewing Python The help content is all viewed in IPythonhelp-content?, but this requires opening another shell window)

淡淡烟草味淡淡烟草味2774 days ago809

reply all(2)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-16 16:39:35

    Recommend you to use
    vim-ref

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-16 16:39:35

    "python help"
    nnoremap <buffer> K :<C-u>let save_isk = &iskeyword \|
        \ set iskeyword+=. \|
        \ execute "!pydoc " . expand("<cword>") \|
        \ let &iskeyword = save_isk<CR>

    This is what I use under window. For Linux, the modification should not be big, you can try it.

    The key is pydocthe issue of commands.

    reply
    0
  • Cancelreply