Add DiffOrig from the vim help documentation
dblume

dblume commited on 2024-03-19 18:08:21
Showing 2 changed files, with 8 additions and 0 deletions.

... ...
@@ -359,6 +359,10 @@ endif
359 359
 nnoremap <silent> [q :cprevious<CR>
360 360
 nnoremap <silent> ]q :cnext<CR>
361 361
 
362
+" From `:help :DiffOrig`.
363
+command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_
364
+    \ | diffthis | wincmd p | diffthis
365
+
362 366
 " I use Roboto Mono from https://github.com/powerline/fonts
363 367
 " On iTerm2, Preferences -> Profiles -> Text -> Font
364 368
 " Cygwin64 won't let you choose it. Launch Cygwin64 as follows:
... ...
@@ -388,6 +388,10 @@ endif
388 388
 nnoremap <silent> [q :cprevious<CR>
389 389
 nnoremap <silent> ]q :cnext<CR>
390 390
 
391
+" From `:help :DiffOrig`.
392
+command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_
393
+    \ | diffthis | wincmd p | diffthis
394
+
391 395
 " I use Roboto Mono from https://github.com/powerline/fonts
392 396
 " On iTerm2, Preferences -> Profiles -> Text -> Font
393 397
 " Cygwin64 won't let you choose it. Launch Cygwin64 as follows:
394 398