vim: Add diff command for unsaved file changes
This commit is contained in:
@@ -168,6 +168,10 @@ if (has('nvim'))
|
|||||||
highlight NonText guibg=NONE
|
highlight NonText guibg=NONE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Commands #####################################################################
|
||||||
|
command DiffOrig vert new | set buftype=nofile | read ++edit # | 0d_ | diffthis
|
||||||
|
\ | wincmd p | diffthis
|
||||||
|
|
||||||
" Autocommands #################################################################
|
" Autocommands #################################################################
|
||||||
" Highlight trailing whitespaces
|
" Highlight trailing whitespaces
|
||||||
" (https://vim.fandom.com/wiki/Highlight_unwanted_spaces)
|
" (https://vim.fandom.com/wiki/Highlight_unwanted_spaces)
|
||||||
|
|||||||
Reference in New Issue
Block a user