I want to get only output of git diff of whole repository, not just a file, in a tab, Not Split With The Commit Message!
In the issues I found a:
command GdiffInTab tabedit %|Gdiff
But this one opens an split view with commit message, the thing I want is to show only git diff in new tab when editing git commit message. Is it possible? Or should I try doing it myself, something like:
function GitDiffTab()
exe "tab new %"
exe "%!git diff"
exe "se ft=diff"
endfunction
But it doesn't work when editing commit message.
Use
:terminal(requires Vim 8.1+)Using fugitive.vim we can create a command:
Use
:Tdiffto dogit diffand:Tdiff!to dogit diff --cachedFor more help see: