]> git.zndr.dk Git - dotfiles.git/commitdiff
Edit with vim in windows
authorJannik ZANDER <jannikz@gmail.com>
Sat, 4 Aug 2018 15:20:29 +0000 (17:20 +0200)
committerJannik ZANDER <jannikz@gmail.com>
Sat, 4 Aug 2018 15:20:29 +0000 (17:20 +0200)
bin/edit_with_vim.bat [new file with mode: 0644]

diff --git a/bin/edit_with_vim.bat b/bin/edit_with_vim.bat
new file mode 100644 (file)
index 0000000..e29534a
--- /dev/null
@@ -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