```batchfile
@echo off
pushd %cd%
%~d0
cd %~dp0
echo Temporarily changing directory to %~dp0

if exist %USERPROFILE%\_vimrc goto GVIMRC
echo Installing _vimrc
echo set rtp+=%CD%\vim> %USERPROFILE%\_vimrc
echo source %CD%\vim\vimrc >> %USERPROFILE%\_vimrc

:GVIMRC
echo Installing _gvimrc
if exist %USERPROFILE%\_gvimrc goto END
echo source %CD%\vim\gvimrc > %USERPROFILE%\_gvimrc

:END
popd

```

Move gvimrc log message so it doesn't print unnecessarily.
user
```batchfile
@echo off
pushd %cd%
%~d0
cd %~dp0
echo Temporarily changing directory to %~dp0

if exist %USERPROFILE%\_vimrc goto GVIMRC
echo Installing _vimrc
echo set rtp+=%CD%\vim> %USERPROFILE%\_vimrc
echo source %CD%\vim\vimrc >> %USERPROFILE%\_vimrc

:GVIMRC
if exist %USERPROFILE%\_gvimrc goto END
echo Installing _gvimrc
echo source %CD%\vim\gvimrc > %USERPROFILE%\_gvimrc

:END
popd

```
assistant