猿问

Linux下用Vim写Python程序时,Python-doc」能做到如「vim-doc」那样吗?

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

HUWWW
浏览 381回答 1
1回答

梦里花落0921

"python help"nnoremap <buffer> K :<C-u>let save_isk = &iskeyword \|&nbsp; &nbsp; \ set iskeyword+=. \|&nbsp; &nbsp; \ execute "!pydoc " . expand("<cword>") \|&nbsp; &nbsp; \ let &iskeyword = save_isk<CR>这个是我在window是下面使用的, Linux的话 修改应该不大, 可以试试。关键就是pydoc命令的问题。

当年话下

推荐你使用vim-ref
随时随地看视频慕课网APP
我要回答