Rabbit Slide Show

Vim and flog

2019-03-29

Description

How to use flog to browse a git repo. Gave this talk at the Vimberlin March 2019 meetup https://vimberlin.de/march-2019-meetup/

Text

Page: 1

vim-flog
Matthias Günther

Page: 2

Features
find and checkout Branches
(with autocompletion)
explore history

Page: 3

Custom mappings
normally ZZ to close windows
I prefer pressing q:
augroup flog
au FileType git map <buffer><silent>q :bw<cr>
au FileType floggraph map <buffer><silent>q :bw<cr>
augroup END

Page: 4

Configs
change display format of git
messages:
let g:flog_default_date_format = 'format:%Y-%m-%d %H:%M:%S'

Page: 5

Get all commits
concerning a file
:Flog -path=archive.md

Page: 6

Comparison to gitv
only necessary features
loads fast
has API to be able to easy
add new features

Page: 7

References:
https://github.com/rbong/
vim-flog
https://medium.com/@r.l.bongers/announcing-flog-a-
new-git-branch-viewer-for-vim-from-the-former-
maintainer-of-gitv-e9db68977810

Other slides

cmus and vim cmus and vim
2017-01-19