Skip to content

Confusing coloring: Add support for diffSubnameΒ #98

@swnakamura

Description

@swnakamura

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions