Coder Social home page Coder Social logo

Comments (10)

kearnh avatar kearnh commented on May 9, 2024 11

You can do this with fugitive:

vmap <silent> u <esc>:Gdiff<cr>gv:diffget<cr><c-w><c-w>ZZ

Make sure to use lazyredraw.

from vim-gitgutter.

airblade avatar airblade commented on May 9, 2024 7

Done in 92abcce :)

from vim-gitgutter.

airblade avatar airblade commented on May 9, 2024 1

cc @ELLIOTTCABLE (I think I saw you were after something like this on vim-fugitive.)

from vim-gitgutter.

airblade avatar airblade commented on May 9, 2024

I agree, that would be helpful. Similarly it would be nice to be able to add a hunk to git's index.

I'll think about how best to do this...

from vim-gitgutter.

coltjones avatar coltjones commented on May 9, 2024

Just throwing in my support. This feature would be great! I'm staring at a line I want to do this too right now. Perhaps add visual mode support for it as well? I.E. Visual mode select 3 lines out of 15 to revert but leave the rest?

from vim-gitgutter.

benjamincburns avatar benjamincburns commented on May 9, 2024

+1 for visual revert!
On Mar 14, 2013 5:49 PM, "coltjones" [email protected] wrote:

Just throwing in my support. This feature would be great! I'm staring at a
line I want to do this too right now. Perhaps add visual mode support for
it as well? I.E. Visual mode select 3 lines out of 15 to revert but leave
the rest?


Reply to this email directly or view it on GitHubhttps://github.com//issues/55#issuecomment-14931566
.

from vim-gitgutter.

yugaljindle avatar yugaljindle commented on May 9, 2024

Anything on this issue.. ?
I don't want to add fugitive only for this 1 feature :(

from vim-gitgutter.

airblade avatar airblade commented on May 9, 2024

@yugal I just haven't been able to find the time to implement this. It's still feasible but I can't guarantee when I might get to it. Sorry.

from vim-gitgutter.

yugaljindle avatar yugaljindle commented on May 9, 2024

Ok, I understand. I will try to play around ( If I can contribute )
FYI : This feature is greatly in demand.

from vim-gitgutter.

jeffbdavenport avatar jeffbdavenport commented on May 9, 2024

@kearnh This appears to check out the entire file, rather than just revert the line you're on

from vim-gitgutter.

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.