anchor.diff:  title Dotfiles installation script
   
   
  -rem Start program ----------------------------------------------------------
  +rem Start program ---------------------------------------------------------
   :init
  -  set source=%~dp0
  +  set location=%~dp0
     goto check_permissions
   
   
  -rem Check administrator permissions ----------------------------------------
  +rem Check administrator permissions ---------------------------------------
   :check_permissions
     echo Administrative permissions required. Detecting permissions...
     net session >nul 2>&1
  
positive.code:   if exist vimfiles (
      echo vimfiles folder already exists. Skipping to next file.
    ) else (
      mklink /D vimfiles %source%vim
    )
  
    if "%choose%" == "3" (
      echo.
      goto link_vimp
    )
  
    if %errorLevel% == 0 (
      goto success
  
negative.code: 
    if "%choose%" == "1" ( goto link_vim )
    if "%choose%" == "2" ( goto link_vimp )
    if "%choose%" == "3" ( goto link_vimp )
    if "%choose%" == "4" ( goto create_pathrc )
  
    if "%choose%" == "vim" ( goto link_vim )
    if "%choose%" == "vimp" ( goto link_vimp )
    if "%choose%" == "pathrc" ( goto create_pathrc )
    if "%choose%" == "all" (
      set choose=3
      goto link_vimp
    )
  
    goto error
  
  
  rem Link vimperator files -------------------------------------------------
  :link_vimp
    rem Go to home directory
    cd %USERPROFILE%
  
    echo Linking vimperator files...
    echo.
  
    if exist vimperator (
      echo vimperator folder already exists. Skipping to next file.
    ) else (
      mklink /D vimperator %location%vimperator
    )
    if exist _vimperatorrc (
      echo _vimperatorrc file already exists. Skipping to next file.
    ) else (
      mklink _vimperatorrc %location%vimperator\vimperatorrc
    )
  
    if "%choose%" == "3" (
      echo.
      goto link_vim
    )
  
    if %errorLevel% == 0 (
      goto success
    ) else (
      goto error
    )
  
  
  rem Link vim files --------------------------------------------------------
  :link_vim
    rem Go to home directory
    cd %USERPROFILE%
  