From 9e3ba1951ef8120114668693f730ca8271a664ed Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Sat, 4 Aug 2018 17:20:29 +0200 Subject: [PATCH] Edit with vim in windows --- bin/edit_with_vim.bat | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bin/edit_with_vim.bat diff --git a/bin/edit_with_vim.bat b/bin/edit_with_vim.bat new file mode 100644 index 0000000..e29534a --- /dev/null +++ b/bin/edit_with_vim.bat @@ -0,0 +1,10 @@ +@echo off +SET vim_path = %USERPROFILE%\apps\vim\vim73\gvim.exe +> edit_with_vim.reg ECHO REGEDIT4 +>> edit_with_vim.reg ECHO [HKEY_CLASSES_ROOT\*\shell\vim] +>> edit_with_vim.reg ECHO @="Edit with &Vim" +>> edit_with_vim.reg ECHO [HKEY_CLASSES_ROOT\*\shell\vim\command] +SET v_test=%USERPROFILE%\apps\vim\vim73\gvim.exe +Set v_replacement=\\ +SET v_result=%v_test:\=\\% +>> edit_with_vim.reg ECHO @="%v_result% \"%%1\"" \ No newline at end of file -- 2.43.0