We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running vim on a remote machine over SSH from an Ubuntu laptop's xterm or gnome-terminal:
Using :GoCoverage to highlight covered/uncovered lines in a trivial .go file, all syntax highlighting for the file disappears:
:GoCoverage
.go
I am expecting to see covered/uncovered lines highlighted in different colors.
I suspect the highlight ctermfg=... colors used in coverage.go are somehow wrong, with the following patch:
highlight ctermfg=...
coverage.go
diff --git a/autoload/go/coverage.vim b/autoload/go/coverage.vim index 5a0c012..1d0afd1 100644 --- a/autoload/go/coverage.vim +++ b/autoload/go/coverage.vim @@ -219,8 +219,8 @@ function! go#coverage#overlay(file) syntax manual highlight normaltext term=bold ctermfg=59 guifg=#75715E - highlight covered term=bold ctermfg=118 guifg=#A6E22E - highlight uncover term=bold ctermfg=197 guifg=#F92672 + highlight covered term=bold ctermfg=green guifg=#A6E22E + highlight uncover term=bold ctermfg=red guifg=#F92672 " clear the matches if we leave the buffer autocmd BufWinLeave <buffer> call go#coverage#Clear()
The highlighting seems to work better:
I have no idea how color terminals are supposed to behave in vim, so I don't know if this is an appropriate fix.
The text was updated successfully, but these errors were encountered:
46da9d3
Hi @SpComb
Thanks for the feedback. I've pushed the fix to master as you said. It's due xterm and vim problems (check out :help ctermfg for more info).
:help ctermfg
Sorry, something went wrong.
No branches or pull requests
Actual behavior
Running vim on a remote machine over SSH from an Ubuntu laptop's xterm or gnome-terminal:
Using
:GoCoverage
to highlight covered/uncovered lines in a trivial.go
file, all syntax highlighting for the file disappears:Expected behavior
I am expecting to see covered/uncovered lines highlighted in different colors.
I suspect the
highlight ctermfg=...
colors used incoverage.go
are somehow wrong, with the following patch:The highlighting seems to work better:
I have no idea how color terminals are supposed to behave in vim, so I don't know if this is an appropriate fix.
Configuration
The text was updated successfully, but these errors were encountered: