From: Jannik ZANDER Date: Sat, 4 Aug 2018 15:20:29 +0000 (+0200) Subject: Edit with vim in windows X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=9e3ba1951ef8120114668693f730ca8271a664ed;p=dotfiles.git Edit with vim in windows --- 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