https://github.com/m42e/vim-gcov-marker
A Simple way to display gcov coverage within vim
https://github.com/m42e/vim-gcov-marker
Last synced: 4 months ago
JSON representation
A Simple way to display gcov coverage within vim
- Host: GitHub
- URL: https://github.com/m42e/vim-gcov-marker
- Owner: m42e
- License: mit
- Created: 2015-04-22T10:14:34.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-03-27T18:08:28.000Z (over 8 years ago)
- Last Synced: 2025-02-23T19:16:26.753Z (over 1 year ago)
- Language: Vim script
- Homepage:
- Size: 12.7 KB
- Stars: 10
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#gcov-marker
This plugin provides a simple way to load and reload gcov files for an open
source file. It will highlight the covered and uncovered lines and publish
the uncovered lines to the location list.
It does not show you detailed information about the coverage at the moment so
you do not get detailed information like the number of hits or branches.
## Install
- Copy plugin/gcov_marker.vim to ~/.vim/plugin
- Copy autoload/gcov_marker.vim to ~/.vim/autoload
- Copy syntax/gcov_marker.vim to ~/.vim/syntax
- Copy doc/gcov_marker.vim to ~/.vim/doc
## Usage
In the window of your source file, run command
:GcovLoad source.gcov
If *g:gcov_marker_path* contains a folder with all your .gcov files, run
:GcovFind
## Configuration
Default markers can be customized using the variables below.
```vimrc
let g:gcov_marker_covered = '✓'
let g:gcov_marker_uncovered = 'X'
```
The *GcovFind* command needs to know where to look for the .gcov files.
The variable takes a comma seperated list of folders.
```vimrc
let g:gcov_marker_path = 'path/to/gcov/files/'
```
By default, the plugin opens the location list once uncovered lines are
published. This behavior can be changed by setting the global variable below.
Note that the uncovered lines will always be published to the location list.
```vimrc
let g:gcov_marker_auto_lopen = 0
```
Command :lopen can be used to display the list of uncovered lines in the location list.