编辑一下代码保存为.reg文件就可以了,替换其中html的类型为新的文件类型就可以。
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.html] @="htmlfile" "Content Type"="text/plain" [HKEY_CLASSES_ROOT\.html\ShellNew] "NullFile"="" [HKEY_CLASSES_ROOT\htmlfile] @="html文件" [HKEY_CLASSES_ROOT\htmlfile\shell] [HKEY_CLASSES_ROOT\htmlfile\shell\open] [HKEY_CLASSES_ROOT\htmlile\shell\open\command] @="C:\Program Files\Vim\vim73\gvim.exe %1