2021-01-07 08:09:41 +00:00
|
|
|
REM First move over old files to backup
|
|
|
|
mkdir %UserProfile%\vimbak
|
|
|
|
mkdir %UserProfile%\gitbak
|
|
|
|
move %UserProfile%\_vimrc %UserProfile%\vimbak
|
2022-04-29 21:01:14 +00:00
|
|
|
move %UserProfile%\.ideavimrc %UserProfile%\vimbak
|
|
|
|
move %UserProfile%\.vsvimrc %UserProfile%\vimbak
|
2021-01-07 08:09:41 +00:00
|
|
|
move %UserProfile%\vimfiles %UserProfile%\vimbak
|
2022-04-29 21:01:14 +00:00
|
|
|
move %UserProfile%\.gitconfig %UserProfile%\gitbak
|
|
|
|
move %UserProfile%\.gitignore %UserProfile%\gitbak
|
2021-01-07 08:09:41 +00:00
|
|
|
type NUL > %UserProfile%\.gitconfig.local
|
|
|
|
|
|
|
|
REM Then link new files in
|
|
|
|
mklink %UserProfile%\_vimrc %~dp0..\symlinks\vimrc
|
2022-04-29 21:01:14 +00:00
|
|
|
mklink %UserProfile%\.ideavimrc %~dp0..\symlinks\ideavimrc
|
|
|
|
mklink %UserProfile%\.vsvimrc %~dp0..\symlinks\vsvimrc
|
2021-01-07 08:09:41 +00:00
|
|
|
mklink /D %UserProfile%\vimfiles %~dp0..\symlinks\vim
|
|
|
|
mklink %UserProfile%\.gitconfig %~dp0..\symlinks\gitconfig
|
|
|
|
mklink %UserProfile%\.gitignore %~dp0..\symlinks\gitignore
|
2021-07-29 21:06:24 +00:00
|
|
|
mklink /D %UserProfile%\AppData\Local\nvim %~dp0..\symlinks\config\nvim
|
2021-01-07 08:09:41 +00:00
|
|
|
|
|
|
|
REM Then set up vim plug
|
|
|
|
Powershell.exe -executionpolicy remotesigned -File %~dp0install_vim_plug_windows.ps1
|