diff options
| -rw-r--r-- | ftplugin/go.vim | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/ftplugin/go.vim b/ftplugin/go.vim index cdad2d5..d22bb67 100644 --- a/ftplugin/go.vim +++ b/ftplugin/go.vim @@ -44,3 +44,10 @@ nmap <buffer> z<C-^> :call go#alternate#Switch(1, 'edit')<CR>  nmap <buffer> <C-w>z<C-^> :call go#alternate#Switch(1, 'vsplit')<CR>  nmap <buffer> Ze <Plug>(go-iferr) + + +" TODO: if no q-args, use cword +command! -buffer -nargs=1 GoDoc :new <Bar> +	\ execute 'read !go doc -all ' . shellescape(<q-args>) <Bar> +	\ set readonly nomodified <Bar> +	\ setfiletype go | 
