Skip to content

Instantly share code, notes, and snippets.

@veirus
Created May 14, 2018 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veirus/aa0a8d5935abb03aa4ad2d895802bb75 to your computer and use it in GitHub Desktop.
Save veirus/aa0a8d5935abb03aa4ad2d895802bb75 to your computer and use it in GitHub Desktop.
Switch between two different .vim dirs on the fly - Windows version
@echo off
if exist "%USERPROFILE%\vimfiles" ( if not exist "%USERPROFILE%\vimfiles_" (move "%USERPROFILE%\vimfiles" "%USERPROFILE%\vimfiles_") else (echo "0 -> _ failed, _ exists"))
if exist "%USERPROFILE%\vimfiles1" ( if not exist "%USERPROFILE%\vimfiles" (move "%USERPROFILE%\vimfiles1" "%USERPROFILE%\vimfiles") else (echo "1 -> 0 failed, 0 exists"))
if exist "%USERPROFILE%\vimfiles_" ( if not exist "%USERPROFILE%\vimfiles1" (move "%USERPROFILE%\vimfiles_" "%USERPROFILE%\vimfiles1") else (echo "_ -> 1 failed, 1 exists"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment