Ug provides U mappings for vim-fugitive,
and a few other QoL tweaks.
See :help ug-mappings for the full list. Examples:
- Show the Git status with
Us. - Show the blame with
Ub. - Jump to the next change with
<c-n>, or previous with<c-p>. - Show Git branch with
<c-g>.
All U… mappings have uppercase aliases (Ux is aliased to UX, etc.), to
avoid worrying about typos.
Requires Nvim 0.12. Partial support for Vim and older Nvim.
vim.pack.add{
'https://github.com/tpope/vim-fugitive',
'https://github.com/justinmk/vim-ug',
}- make
<c-g>mapping compatible with Vim
Ug is a minimal wrapper around vim-fugitive by Tim Pope.