Talk about Vim flog
How to use flog to browse a git repo. Gave this talk at the Vimberlin March 2019 meetup.
Slides of the talk
Video of the talk
Content of the talk
Features
- find and checkout Branches (with autocompletion)
- explore history
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
Configs
- change display format of git messages:
let g:flog_default_date_format = 'format:%Y-%m-%d %H:%M:%S'
Get all commits concerning a file
:Flog -path=archive.md
Comparison to gitv
- only necessary features
- loads fast
- has API to be able to easy add new features
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
Connect with me
You can find the source under bitbucket. I gave this talk at Vimberlin March 2019 Meetup.