vim-fugitive icon indicating copy to clipboard operation
vim-fugitive copied to clipboard

Git blame output format

Open ferdinandyb opened this issue 10 months ago • 1 comments

Would my assumption be correct that fugitive just displays whatever is output by git blame? So if I'd want to have something like names abbreviated or at least limited to x characters then git would need to support this? Looking at man git-blame I don't think it does.

Why I'm asking this is that the window opened by :Git blame is rather large. And in smaller projects initials would be more than enough. The date is long too, but it seems blame does have a configuration option for modifying that.

ferdinandyb avatar Jan 09 '25 21:01 ferdinandyb

These following configurations might be better, I didn't find anything better


" Open GitBlame
function! OpenGitBlame()
    exe "Git blame --date=short"
    nmap <buffer> <silent> q :q<CR>
endfunction

nmap <leader>;a :call OpenGitBlame()<CR>

Yunus4832 avatar Feb 10 '25 13:02 Yunus4832