From c8d4320a092bbeaa86d3610cc7a8694883742813 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 6 Apr 2017 13:54:10 +0100 Subject: [PATCH] Add registry file for Vim in %LOCALAPPDATA% --- windows.reg | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 windows.reg diff --git a/windows.reg b/windows.reg new file mode 100644 index 0000000..c82b58a --- /dev/null +++ b/windows.reg @@ -0,0 +1,48 @@ +Windows Registry Editor Version 5.00 + +;======================================================================= +; Add "Edit with Vim" to all file types. + +[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\gvim-rw] +@="Edit with Vim" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\gvim-rw\command] +; Maps to "\"%LOCALAPPDATA%\\vim\\vim80\\gvim.exe" \"%1\"" +@=hex(2):22,00,25,00,4c,00,4f,00,43,00,41,00,4c,00,41,00,50,00,50,00,44,00,41,\ + 00,54,00,41,00,25,00,5c,00,76,00,69,00,6d,00,5c,00,76,00,69,00,6d,00,38,00,\ + 30,00,5c,00,67,00,76,00,69,00,6d,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,\ + 00,25,00,31,00,22,00,00,00 + +[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\gvim-ro] +@="View with Vim" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\gvim-ro\command] +; Maps to "\"%LOCALAPPDATA%\\vim\\vim80\\gvim.exe" -R \"%1\"" +@=hex(2):22,00,25,00,4c,00,4f,00,43,00,41,00,4c,00,41,00,50,00,50,00,44,00,41,\ + 00,54,00,41,00,25,00,5c,00,76,00,69,00,6d,00,5c,00,76,00,69,00,6d,00,38,00,\ + 30,00,5c,00,67,00,76,00,69,00,6d,00,2e,00,65,00,78,00,65,00,22,00,20,00,2d,\ + 00,52,00,20,00,22,00,25,00,31,00,22,00,00,00 + +;======================================================================= +; Define "Vim" file type to open with gVim + +[HKEY_CURRENT_USER\SOFTWARE\Classes\Vim\DefaultIcon] +@="%SystemRoot%\\System32\\imageres.dll,97" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\Vim\shell\open] +@="Open" + +[HKEY_CURRENT_USER\SOFTWARE\Classes\Vim\shell\open\command] +; Maps to "\"%LOCALAPPDATA%\\vim\\vim80\\gvim.exe" \"%1\"" +@=hex(2):22,00,25,00,4c,00,4f,00,43,00,41,00,4c,00,41,00,50,00,50,00,44,00,41,\ + 00,54,00,41,00,25,00,5c,00,76,00,69,00,6d,00,5c,00,76,00,69,00,6d,00,38,00,\ + 30,00,5c,00,67,00,76,00,69,00,6d,00,2e,00,65,00,78,00,65,00,22,00,20,00,2d,\ + 00,52,00,20,00,22,00,25,00,31,00,22,00,00,00 + +;======================================================================= +; Vim file + +[HKEY_CURRENT_USER\SOFTWARE\Classes\.vim] +@="Vim" +"Content Type"="text/x-vim" +"PerceivedType"="text"