dotfiles/windows/bootstrap_windows.bat

23 lines
983 B
Batchfile
Raw Normal View History

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
move %UserProfile%\.ideavimrc %UserProfile%\vimbak
move %UserProfile%\.vsvimrc %UserProfile%\vimbak
2021-01-07 08:09:41 +00:00
move %UserProfile%\vimfiles %UserProfile%\vimbak
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
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
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