dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

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:
Mvim/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 = {