Ⅰ. 插件描述
gobuⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'kashomon/gobu'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'kashomon/gobu'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'kashomon/gobu'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/kashomon/gobu
Ⅳ. 文档说明
Gobu: A Go Build Tool

Gobu is simple Go build tool for Vim.
The primary improvement of Gobu over a default quickfix integration is that the
entire output of a command is put into the Gobu Window. This means that we get
the entire message -- no truncation, no munging, and we still get the useful
jump-to-error feature of quickfix (by pressing enter while on the same line as
a file path).
Gobu exposes the following commands to the user:
:GoBuild -- build current package
:GoInstall -- install current package
:GoTest -- test current package
:GoFmt -- go format current package
Gobu also supports recursive versions of the commands, by adding a trailing
bang:
:GoBuild! -- recursive build, starting from current package
:GoTest! -- recursive test, startingc from current package
The Gobu Window
Right now, the GobuWindow remaps following keys:
<CR> (enter) -- jump to a file location under the cursor
R -- rerun the last command
q -- close the window
Installing
The easiest way to install is to use Vundle or Pathogen (or another vim plugin
manager manager). For Vundle, all you need to add to your .vimrc is:
Bundle 'Kashomon/gobu'
and then do a :BundleUpdate
Examples:
Panic!

Test Failure
