扫码关注官方订阅号
[描述]比如查看Vim的某项帮助内容,可以:h help-content, 查看Python-doc时是否能做到这样?(我现在查看Python的帮助内容都是在IPython中看help-content?,但是这样需要另开一个shell窗口)
:h help-content
help-content?
推荐你使用vim-ref
"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命令的问题。
pydoc
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
推荐你使用
vim-ref
这个是我在window是下面使用的, Linux的话 修改应该不大, 可以试试。
关键就是
pydoc
命令的问题。