diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 2e2c20d..32b8f78 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -168,6 +168,10 @@ if (has('nvim')) highlight NonText guibg=NONE endif +" Commands ##################################################################### +command DiffOrig vert new | set buftype=nofile | read ++edit # | 0d_ | diffthis + \ | wincmd p | diffthis + " Autocommands ################################################################# " Highlight trailing whitespaces " (https://vim.fandom.com/wiki/Highlight_unwanted_spaces)