1
0
mirror of https://github.com/golang/go synced 2024-11-11 22:30:21 -07:00

misc/vim: godoc is optional. so should point installation instruction.

R=golang-dev, r, dsymonds
CC=golang-dev
https://golang.org/cl/14017043
This commit is contained in:
Yasuhiro Matsumoto 2013-09-27 12:35:03 +10:00 committed by David Symonds
parent fa7791e922
commit b128426804

View File

@ -66,6 +66,13 @@ function! s:GodocView()
endfunction
function! s:GodocWord(word)
if !executable('godoc')
echohl WarningMsg
echo "godoc command not found."
echo " install with: go get code.google.com/p/go.tools/cmd/godoc"
echohl None
return
endif
let word = a:word
silent! let content = system('godoc ' . word)
if v:shell_error || !len(content)