Commit b1284268 authored by Yasuhiro Matsumoto's avatar Yasuhiro Matsumoto Committed by David Symonds

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

R=golang-dev, r, dsymonds
CC=golang-dev
https://golang.org/cl/14017043
parent fa7791e9
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment