Ⅰ. 插件描述
DEPRECATED: use latest vim-go that merged this plugin. // Go (golang) code coverage overlays support for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用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.

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 saveThanks and Credits
- Thanks for basic structure and some of codes: https://github.com/fatih/vim-go and related projects.
- Thanks for inspiration: https://github.com/twada/coverlay.el
Thanks for documentation: http://vim-jp.org/vimdoc-ja/eval.html
- Thanks for parser: https://godoc.org/golang.org/x/tools/cover#ParseProfiles
Thanks for contributors