about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/user/aszlig/programs/vim/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/user/aszlig/programs/vim/default.nix b/modules/user/aszlig/programs/vim/default.nix
index afeedf26..791c4d5a 100644
--- a/modules/user/aszlig/programs/vim/default.nix
+++ b/modules/user/aszlig/programs/vim/default.nix
@@ -348,6 +348,9 @@ let
       endfor
     endfun
 
+    command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
+      \ | wincmd p | diffthis
+
     " flake everything that has been *detected* as python (not just by suffix).
     autocmd BufWritePost * if &ft ==# 'python' | call Flake8() | endif
   '';