gitk has vi key bindings

By Greg Turnquist

Greg is a member of the Spring team, an author of several books on Spring Boot, conference speaker, and the lead for Spring Data JPA.

January 1, 2013

As I’ve pointed out before, it is in your very best interest to learn vi. It may be a cryptic editor to you, but everything uses it’s most basic navigational key bindings (h-j-k-l => left-down-up-right). I just fired up gitk so I could rapidly look at the log messages I had made regarding my manuscript for Darklight, and without even thinking, traipsed through them using vi key bindings. Nice!

By the way, yes, I use git’s command line all the time, but for my manuscript I have been writing detailed log messages, aka multi-paragraph commit messages. I usually don’t do that on software, so my railroad diagram (git log –graph –pretty=”format:’%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset'” –abbrev-commit –date=relative aliased as git lg) is usually enough.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *