1
0
mirror of https://github.com/gryf/.vim.git synced 2025-12-17 19:40:29 +01:00

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

This commit is contained in:
2011-01-09 12:28:19 +01:00
parent 90fd776dc2
commit 23a9d47b8f
7 changed files with 75 additions and 1448 deletions

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