Vim dla Mechawojownika

Ciekawostka. Patch dla Mechwarrior 2 Mercenaries zawiera plik BAT ze znajomymi komendami:

@echo off
REM ~ $Id$
echo Welcome to my sad excuse for a search-and-replace patcher.
REM ~ **** **** **** MW2SND.CFG **** **** ****
REM ~ Make backup of it.
copy mw2snd.cfg mw2snd.cfg.backup > NUL
REM ~ Create vesa768.dll for 1024x768 to work.
echo Figure this one out! > vesa768.dll
REM ~ Brute force: replace mcga.dll and vesa480.dll in mw2snd.cfg.
echo :%%s/mcga.dll…/vesa768.dll/i > sub.script
echo :%%s/vesa480/vesa768/i >> sub.script
echo :w!>> sub.script
echo :q >> sub.script
vim -b -s sub.script mw2snd.cfg
REM ~ **** **** **** MERCSWIN.EXE **** **** ****
REM ~ Make backup of it.
copy mercswin.exe mercswin.exe.backup > NUL
REM ~ Again, brute force rules.
echo :%%s/gdi32.dll/gdi42.dll/i > sub.script
echo :w! >> sub.script
echo :q >> sub.script
vim -b -s sub.script mercswin.exe
REM ~ **** **** **** MW2SHELL.DLL **** **** ****
REM ~ Make backup of it.
copy mw2shell.dll mw2shell.dll.backup > NUL
REM ~ Again, brute force rules.
echo :%%s/gdi32.dll/gdi42.dll/i > sub.script
echo :%%s/advapi32.dll/advapi42.dll/i >> sub.script
echo :w!>> sub.script
echo :q >> sub.script
vim -b -s sub.script mw2shell.dll
REM ~ **** **** **** MERCSW.DLL **** **** ****
REM ~ Make backup of it.
copy mercsw.dll mercsw.dll.backup > NUL
REM ~ Again, brute force rules.
echo :%%s/advapi32.dll/advapi42.dll/i > sub.script
echo :w!>> sub.script
echo :q >> sub.script
vim -b -s sub.script mercsw.dll
REM ~ All done.
:all_done_ttfn
del sub.script
echo All done, TTFN.

Okazuje się, że w archiwum z łatką jest między innymi plik vim.exe i w taki właśnie sposób aktualizowana jest gra. Bardzo ciekawe rozwiązanie.