4 ms·
Not a mega power vim user, but maybe this qualifies. I use vim as my git editor. When doing interactive rebase, if I want to squash/fix commits, for example, I
by corytheboyd 6y ago
Not a mega power vim user, but maybe this qualifies. I use vim as my git editor. When doing interactive rebase, if I want to squash/fix commits, for example, I go to the first commit I want to change the command for, ‘ciw’ to change the command, ‘esc’ to exit exit, then for the subsequent commits I want to squash/fix, just use ‘.’ to replay those same commands to the new line. Works very well! I love using vim as the git editor, it’s stupid fast, and doesn’t take you away from the command line
- julianlam 6y agoThat's a neat tip, thanks for sharing that, this is the exact use case I was looking for. I was hoping to kick the can on learning vim macros down the road, and so here we go...
- corytheboyd 6y agoNo problem! Happy to help with things I wish people told me long ago :)