Fork me on GitHub
#off-topic
<
2021-11-01
>
zendevil.eth13:11:08

hi guys, is there a way to commit hunks of code in vim like in emacs-magit rather than the whole file?

dharrigan13:11:23

vim fugitive allows that too. You can examine a file and stage files or hunks under the cursor

timo14:11:53

I think gitsigns can do that too but not actively using this feature so far...

mjw14:11:38

I've always used git add -p from the command line to interactively stage portions of files. I've had vim-fugitive installed for years but have too lazy to actually use it for much.

timo14:11:31

me too actually...I do prefer cli for most things but line-blame in gitsigns is nice

dharrigan14:11:33

tbt, I usually do that sort of stuff on the command line too

schmee17:11:09

if you’re using neovim and care about speed: https://github.com/lewis6991/gitsigns.nvim

schmee17:11:40

beware though, I’ve find a few bugs using it so it might not quite be ready for primetime

walterl20:11:51

vim-fugitive is a game changer. You can vimdiff against the staged changes, meaning you can directly edit what is staged. Very useful for splitting up commits below the per line level.

☝️ 1
zendevil.eth09:11:54

@URP769HJN vim-gitgutter is great, thanks

Stuart21:11:20

My flat is 5 mins away from the conference center where COP26 is being held. It is chaos around here

Stuart21:11:46

even now there is so much police still about. Loads of roads and paths closed.

Stuart21:11:11

This morning there was hundreds of people just converging on the conference center past my flat, completely packed crowd.

Stuart21:11:58

Cant get taxis to come anwhere near, doubt Uber Eats will be delivering either.