Skip to content

Instantly share code, notes, and snippets.

View Aimage's full-sized avatar

Aina RAKOTOSON Aimage

View GitHub Profile
@xc1427
xc1427 / add_open_with_gvim_x64_win10.bat
Last active September 30, 2021 13:15
Open folders and files with gvim from windows explorer context menu (tested in Windows 10 64bit)
@echo off
SET gvimPath=%USERPROFILE%\vim\vim80\gvim.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with gvim" /t REG_SZ /v "" /d "Open with gvim" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with gvim" /t REG_EXPAND_SZ /v "Icon" /d "%gvimPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with gvim\command" /t REG_SZ /v "" /d "%gvimPath% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with gvim" /t REG_SZ /v "" /d "Open with gvim" /f