Giter Club home page Giter Club logo

Comments (4)

xaizek avatar xaizek commented on May 27, 2024 1

I think since Vim does the diffing and has all the information about it, the best place to implement such mappings is in Vim itself. It will also make it work not just in this plugin. Please consider bringing it up in https://github.com/vim/vim/issues

from linediff.vim.

AndrewRadev avatar AndrewRadev commented on May 27, 2024

When diffing areas, what's used its Vim's built-in "diff mode", and you could jump between changes with [c and ]c -- take a look at :help jumpto-diffs. You could remap them, although it might be tricky to do it just in diff mode. Does that work for you, or did you mean a different kind of jump?

from linediff.vim.

hupfdule avatar hupfdule commented on May 27, 2024

Thanks for the hint, but that was not exactly what I had in mind.

These movements are linewise movements. They jump to the next line that differs. But they don't jump the next difference inside the line. As linediff colors the actual differences in a line I was expecting that it would be possible to jump to the next such difference. But if only the internal vimdiff feature is used, maybe that is not possible.

from linediff.vim.

AndrewRadev avatar AndrewRadev commented on May 27, 2024

I see what you mean, yeah. Unfortunately, the plugin doesn't use anything special other than the built-in vimdiff. Theoretically, I could walk character by character to find the beginning of a syntax group, but that feels outside of the scope of the plugin. I did, however, find a few attempts at a general solution:

If you try some of these options out and they work well for your use cases, but they require some special command, I can add an option to the plugin to use it instead of the built-in diff.

from linediff.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.