From c6db19b35716fd5645570f1613fcbf30cd702036 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 8 Dec 2015 21:17:30 +0100 Subject: programs/vim: Add DiffOrig command. Especially useful if you get a kernel panic and have swapfiles laying around. This command is actually from the Vim example config file and is documented in the diff-original-file help of Vim. Signed-off-by: aszlig --- modules/user/aszlig/programs/vim/default.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules') 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 ''; -- cgit 1.4.1