I want to know if is there a Vim plugin which integrates the PHP documentation of an official class or its methods directly in Vim.
Just Like pydoc.vim for Python: Pydoc.vim
问问题
451 次
1 回答
3
我在 .vimrc 中使用类似的东西
" F7 opens documentation for php/perl function under cursor
function! BrowseDoc()
if b:current_syntax == "php"
! open "http://ch2.php.net/manual-lookup.php?pattern=<cword>"
elseif b:current_syntax == "perl"
! open http://perldoc.perl.org/search.html?q=<cword>
elseif b:current_syntax == "cpp"
let cname = tolower(cword);
! open file:///opt/qt-4.3.4/doc/html/<cname>
else
return
endif
endfunction
map <F7> :call BrowseDoc()^M^M
open
是一个 OS X 命令,您可能需要在其他平台上调整它
于 2013-05-01T23:48:43.713 回答