Files
dotvim/setup.bat
Vasili Sviridov 09f5702e7a Windows setup batch file
Added a tool to create junction points, so that the vim folder can be
symlinked to profile directory
2012-08-10 14:32:06 -07:00

25 lines
366 B
Batchfile

@echo off
rem Change to the directory of this script
cd /d %0\..
ver | find "XP" > nul
if %ERRORLEVEL% == 0 goto vXp
goto vOver
:vXp
set target=%UserProfile%\vimfiles
set cmd=junction "%target%" "%cd%"
start /I %cmd%
set cmd=fsutil hardlink create "%UserProfile%\_vimrc" "%cd%\vimrc"
start /I %cmd%
goto done
:vOver
goto done
:done