Giter Site home page Giter Site logo

the diff mode color about vim HOT 4 CLOSED

etorth avatar etorth commented on June 2, 2024
the diff mode color

from vim.

Comments (4)

dsifford avatar dsifford commented on June 2, 2024 1

I think in order to add this without a flag we'd need to have a bunch of people asking for it.

I'd say, to start off, it might be a good idea for @etorth to get a setup that they like working locally in their own config and then pitch the idea here with actual suggested changes in a PR that can be iterated on.

from vim.

benknoble avatar benknoble commented on June 2, 2024

Can you clarify where you want to see more contrast?

If we change the background color everywhere it's hard to identify word diffs (the background highlight in your screenshot shows where only part of a line changed, which is nice).

I suppose we could consider changing the background in a different way for the non-word diffs. Suggestions?

from vim.

etorth avatar etorth commented on June 2, 2024

image

I mean something like this, although this one has a bad palette.
The diff lines needs high-contrast background color to those unchanged lines.
For people working on file diffs this is very helpful, because we just (need to) ignore all unchanged lines.
A partially changed line can still be highlighted, as in this example.

In this example I hate the write font in bright purple which make things worse.

from vim.

benknoble avatar benknoble commented on June 2, 2024

I'm happy to add such a feature, but I don't have the time (or the eyeball, probably) to come up with the right colors.

If you look in :help dracula, there are some useful instructions for customizing the theme (you could also edit the sources). Perhaps you could try some different colors and find an approach that works for you? Then we can discuss a concrete proposal and refine it.

@dsifford if we added a high-contrast diff coloring, would you want that behind a feature flag or to just become the diff coloring? I can see how it would be useful, but I'm not 100% sure about changing the default.

from vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.