24 lines
523 B
Batchfile
24 lines
523 B
Batchfile
|
@echo off
|
||
|
|
||
|
rem ����Դ�ļ���Ŀ���ļ���·��
|
||
|
set "source_vimrc=%~dp0vimrc"
|
||
|
set "source_colors=%~dp0colors"
|
||
|
set "target_vimfiles=%USERPROFILE%\vimfiles"
|
||
|
set "target_colors=%USERPROFILE%\vimfiles\colors"
|
||
|
|
||
|
rem ����Ŀ���ļ��У����������ڣ�
|
||
|
if not exist "%target_vimfiles%" (
|
||
|
mkdir "%target_vimfiles%"
|
||
|
)
|
||
|
|
||
|
rem ���� vimrc �ļ���Ŀ���ļ���
|
||
|
copy /Y "%source_vimrc%" "%target_vimfiles%"
|
||
|
|
||
|
rem ���� colors �ļ��е�Ŀ���ļ���
|
||
|
if exist "%source_colors%" (
|
||
|
xcopy /S /Y /I "%source_colors%" "%target_colors%"
|
||
|
)
|
||
|
|
||
|
echo "��������"
|
||
|
pause
|