Ⅰ. 插件描述
Vim support for the Go oracleⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'andrewradev/go-oracle-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'andrewradev/go-oracle-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'andrewradev/go-oracle-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/andrewradev/go-oracle.vim
Ⅳ. 文档说明
This is a very incomplete implementation of Vim support for the [Go
oracle](http://godoc.org/code.google.com/p/go.tools/oracle).
The original file this was based on is
here.
For now, this is the same code, simply organized in a different way. I intend
to experiment with it to get some more useful integration with the editor.
The main interface is a set of buffer-local commands, prefixed with Oracle.
By default, they look at the current cursor location for context, but they can
also be given a visual range.
The following commands are currently implemented:
OracleDescribe: Describes the expression at the current point.OracleCallees: Show possible callees of the function call at the current point.OracleCallers: Show the set of callers of the function containing the current point.OracleCallgraph: Show the callgraph of the current program.OracleImplements: Describe the 'implements' relation for types in the
package containing the current point.OracleChannelPeers: Enumerate the set of possible corresponding
sends/receives for this channel receive/send operation.Oracle: Experimental command that encompasses all of the above. Can be
called with thehighlightorquickfixcommands and given one of the
subcommands as above, like Oracle quickfix describe, Oracle highlight peers.