Skip to content

Instantly share code, notes, and snippets.

@watagashi
Created March 15, 2011 12:51
Show Gist options
  • Save watagashi/870677 to your computer and use it in GitHub Desktop.
Save watagashi/870677 to your computer and use it in GitHub Desktop.
@echo off
setlocal
set target=vimexe
set vim=vim
if exist %target% (
echo %target% is already exist.
goto end
)
if exist %target%.zip (
echo %target%.zip is already exist.
goto end
)
xcopy %vim%\*.exe %target%\ /s
xcopy %vim%\*.dll %target%\ /s
xcopy %vim%\*.vim %target%\ /s
xcopy %vim%\*vimrc %target%\ /s
xcopy %vim%\runtime %target%\runtime\ /s /d
xcopy %SystemDrive%\MinGW\bin\*.dll %target%\src\
xcopy %HOME%\vimfiles %target%\vimfiles\ /s
echo so $VIM\vimfiles\_vimrc>%target%\_vimrc
echo so $VIM\vimfiles\_gvimrc>%target%\_gvimrc
"%ProgramFiles%\7-zip\7z.exe" a %target%.zip vimexe\
:end
endlocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment