vim-go-coverlay


Ⅰ. 插件描述

DEPRECATED: use latest vim-go that merged this plugin. // Go (golang) code coverage overlays support for Vim

Ⅱ. 基本信息

创建日期:  2014-11-24
使用用户:  7
Github星:  25
插件作者:  Yukinari Toyota

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 't-yuki/vim-go-coverlay'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 't-yuki/vim-go-coverlay'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 't-yuki/vim-go-coverlay'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/t-yuki/vim-go-coverlay

Ⅳ. 文档说明

# DEPRECATED: use latest vim-go that merged this plugin.

vim-go-coverlay

Go (golang) code coverage overlays support for Vim.

ss-vim-go-coverlay

Install

For Vundle add these lines to your vimrc:

Plugin 'fatih/vim-go' "prerequisites
Plugin 't-yuki/vim-go-coverlay'

Then run :PluginInstall

Mappings

For example, add these lines to your vimrc:

au FileType go nmap <leader>c <Plug>(go-coverlay) "test coverage then overlay covered lines
au FileType go nmap <leader>C <Plug>(go-clearlay) "clear overlay

au BufWritePost *.go call go#coverlay#Coverlay() "run test and cover on file save

Thanks and Credits

添加新评论