Added new version of pydoc, added first draft for OpenUI/OPL syntax

This commit is contained in:
gryf committed 2011-01-09 12:28:19 +01:00
1 parent 90fd776dc2
commit 23a9d47b8f
7 files changed
+75 -1448

No files matched your search

+3 -1
View File
@@ -49,8 +49,10 @@ function! ShowPyDoc(name, type)
set buftype=nofile
setlocal modifiable
normal ggdG
" remove function/method arguments
let s:name2 = substitute(a:name, '(.*', '', 'g' )
let s:name2 = substitute(a:name, ':', '', 'g' )
" remove all colons
let s:name2 = substitute(s:name2, ':', '', 'g' )
if a:type==1
execute "silent read ! " . g:pydoc_cmd . " " . s:name2
else