Skip to content

Commit 3c37b38

Browse files
committed
Refactor python documentation search.
1 parent c79cf86 commit 3c37b38

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

autoload/pymode/doc.vim

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ fun! pymode#doc#Show(word) "{{{
22
if a:word == ''
33
echoerr "No name/symbol under cursor!"
44
else
5-
call pymode#ShowCommand(g:pydoc . " " . escape(a:word, " "))
5+
call pymode#TempBuffer()
6+
redi @">
7+
sil!py help(vim.eval('a:word'))
8+
redi END
9+
normal Pdd
10+
wincmd p
611
endif
712
endfunction "}}}

0 commit comments

Comments
 (0)