首页 > Linux下用Vim写Python程序时「查询Python的帮助内容,即Python-doc」能做到如「vim-doc」那样吗?

Linux下用Vim写Python程序时「查询Python的帮助内容,即Python-doc」能做到如「vim-doc」那样吗?

[描述]
比如查看Vim的某项帮助内容,可以:h help-content, 查看Python-doc时是否能做到这样?
(我现在查看Python的帮助内容都是在IPython中看help-content?,但是这样需要另开一个shell窗口)


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

这个是我在window是下面使用的, Linux的话 修改应该不大, 可以试试。

关键就是pydoc命令的问题。


推荐你使用
vim-ref

【热门文章】
【热门文章】