swconfig/vim/install.bat

24 lines
523 B
Batchfile
Raw Normal View History

2024-04-29 22:01:17 +08:00
@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