Created
January 23, 2013 15:58
-
-
Save wridgers/4608606 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal EnableDelayedExpansion | |
set EXT_LIST=(c cpp css h hs js pl py sh xml log markdown md text txt conf json) | |
ftype txtfile="C:\Program Files (x86)\Vim\vim73\gvim.exe" --remote-silent "%%1" | |
for %%e in %EXT_LIST% do ( | |
assoc .%%e=txtfile | |
REG ADD "HKEY_CLASSES_ROOT\.%%e" /f /ve /d "txtfile" | |
REG ADD "HKEY_CLASSES_ROOT\.%%e" /f /v "Content Type" /d "text/plain" | |
REG ADD "HKEY_CLASSES_ROOT\.%%e" /f /v "PerceivedType" /d "text" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment