commit 168a8772e219a7a1748be2e3c5a8357f5af61468 parent b413e7c0bb5288b464a025e2df922ac3bd07b211 Author: Alex Balgavy <alex@balgavy.eu> Date: Thu, 9 Jun 2022 17:35:37 +0200 vim: command to diff unsaved changes with original file Diffstat:
M | vim/vimrc | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/vim/vimrc b/vim/vimrc @@ -774,6 +774,11 @@ if has('terminal') cnoreabbrev tn terminal ++close joplin command! Reddit tab terminal ttrv endif + +" Convenient command to see the difference between the current buffer and the +" file it was loaded from, thus the changes you made. +command! DiffOrig vert new | set bt=nofile | r# | 0d_ | diffthis + \ | wincmd p | diffthis " }}} " Digraphs {{{1 let digraphs = {