Skip to content
New issue

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

Confusing coloring: Add support for diffSubname #98

Open
swnakamura opened this issue Jan 24, 2022 · 1 comment
Open

Confusing coloring: Add support for diffSubname #98

swnakamura opened this issue Jan 24, 2022 · 1 comment

Comments

@swnakamura
Copy link
Contributor

swnakamura commented Jan 24, 2022

Environment:

  • OS: Arch Linux
  • Vim (:version): nvim v0.7.0-dev+920-g7e2ce35e3
  • Terminal: GNOME Terminal

When I diff files (e.g. with fugitive.vim), coloring is confusing.

For example, I have a text file

hello world.
hello world.
hello world.

deleted

then change the line deleted with added. When I compare the difference with fugitive.vim, I see this:
image
Here, the first hello world. line is highlighted green, but is not the added line. This is confusing.

Solution?

This happens because iceberg.vim doesn't have a highlight for diffSubname.
It is defined here and linked to PreProc later in the file.
Then PreProc is highlighted as green in iceberg.vim.

I suppose we can use a different color for diffSubname?

@swnakamura
Copy link
Contributor Author

swnakamura commented Jan 24, 2022

https://vi.stackexchange.com/questions/4883/overwrite-colorscheme-syntax-highlighting
The same issue is discussed here. Maybe I should fix this locally by inserting something like hi! link diffSubname NONE to my .vimrc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant