gitk has vi key bindings

By Greg Turnquist

Greg L. Turnquist worked on the Spring team for over thirteen years and is a senior staff technical content engineer at Cockroach Labs. He was the lead for Spring Data JPA and Spring Web Services. He wrote Packt's best-selling title, Learning Spring Boot 2.0 2nd Edition, and its 3rd Edition follow-up along many others.

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.


Submit a Comment

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