Add vim GitDiff command

This commit is contained in:
Talia 2021-07-20 09:56:02 +02:00
parent 8cf20e57f9
commit f79d612b7c

View file

@ -6,7 +6,6 @@
" ┌─┴─┴───┴─┴───┴─┴─┐ " " ┌─┴─┴───┴─┴───┴─┴─┐ "
" ┌┘ Git Stuff └┐ " " ┌┘ Git Stuff └┐ "
" └───────────────────┘ " " └───────────────────┘ "
augroup git augroup git
" Find the root of a git repository " Find the root of a git repository
@ -277,5 +276,6 @@ command! ShowGitRoot try
\| echo <sid>gitroot() \| echo <sid>gitroot()
\| catch | echo 'Not a git repository' \| catch | echo 'Not a git repository'
\| endtry \| endtry
command! GitDiff diffthis | vert bel split | exec "silent GitPrev" | diffthis
augroup END augroup END