Created
September 22, 2015 11:30
-
-
Save Boggin/1bab35e0efbf35e6ac9f to your computer and use it in GitHub Desktop.
Install spf13's Vim on Windows XP (after adding fsutil and junction.exe).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Copyright 2014 Steve Francia | |
REM | |
REM Licensed under the Apache License, Version 2.0 (the "License"); | |
REM you may not use this file except in compliance with the License. | |
REM You may obtain a copy of the License at | |
REM | |
REM http://www.apache.org/licenses/LICENSE-2.0 | |
REM | |
REM Unless required by applicable law or agreed to in writing, software | |
REM distributed under the License is distributed on an "AS IS" BASIS, | |
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
REM See the License for the specific language governing permissions and | |
REM limitations under the License. | |
REM @if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH% | |
@if not exist "%HOME%" @set HOME=%userprofile% | |
@set APP_DIR=C:\.spf13-vim-3 | |
IF NOT EXIST "%APP_DIR%" ( | |
call git clone --recursive -b 3.0 https://github.com/spf13/spf13-vim.git "%APP_DIR%" | |
) ELSE ( | |
@set ORIGINAL_DIR=%CD% | |
echo updating spf13-vim | |
chdir /d "%APP_DIR%" | |
call git pull | |
chdir /d "%ORIGINAL_DIR%" | |
call cd "%APP_DIR%" | |
) | |
call fsutil hardlink create "%HOME%\.vimrc" "%APP_DIR%\.vimrc" | |
call fsutil hardlink create "%HOME%\_vimrc" "%APP_DIR%\.vimrc" | |
call fsutil hardlink create "%HOME%\.vimrc.fork" "%APP_DIR%\.vimrc.fork" | |
call fsutil hardlink create "%HOME%\.vimrc.bundles" "%APP_DIR%\.vimrc.bundles" | |
call fsutil hardlink create "%HOME%\.vimrc.bundles.fork" "%APP_DIR%\.vimrc.bundles.fork" | |
call fsutil hardlink create "%HOME%\.vimrc.before" "%APP_DIR%\.vimrc.before" | |
call fsutil hardlink create "%HOME%\.vimrc.before.fork" "%APP_DIR%\.vimrc.before.fork" | |
call "C:\Program Files\SysinternalsSuite\junction.exe" "%HOME%\.vim" "%APP_DIR%\.vim" | |
IF NOT EXIST "%APP_DIR%\.vim\bundle" ( | |
call mkdir "%APP_DIR%\.vim\bundle" | |
) | |
IF NOT EXIST "%APP_DIR%/.vim/bundle/vundle" ( | |
call git clone https://github.com/gmarik/vundle.git "%APP_DIR%/.vim/bundle/vundle" | |
) ELSE ( | |
call cd "%APP_DIR%/.vim/bundle/vundle" | |
call git pull | |
call cd %APP_DIR% | |
) | |
call vim -u "%APP_DIR%/.vimrc.bundles" +BundleInstall! +BundleClean +qall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment