Navigate Git branches with Vim-Flog

3.8
(644)

Flog is an extension to the every-popular Fugitive that allows easy Git branch viewing and commit history navigation inside of Vim.

It’s incredibly easy to use: powerful yet simple to navigate. After installing, simply open the commit history with :Flog. What you’ll see is a visual representation of the commit history and branches, similar to using the --graph option on git log:

From here, there are a number of useful commands and options. I found gm to be useful for navigating a linear history because it hides merge comments. To see all options, use g?. To open a commit to see its commit message and diff, just hit enter on them, <CR>. From there, you can toggle through to the next and previous with <C-N> and <C-P>.

All in all, Flog is a very useful plugin and one I will add to my daily arsenal.

How useful was this tip?

Average rating 3.8 / 5. Vote count: 644

No votes so far! Be the first to rate this tip.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Written by

Colin Bartlett

105 Posts

Vim enthusiast and software developer for more than 20 years.
View all posts