forked from spf13/spf13-vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request spf13#555 from jrobeson/add-app_dir-var
add app_dir var to point to root of application
- Loading branch information
Showing
4 changed files
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH% | ||
@if not exist "%HOME%" @set HOME=%USERPROFILE% | ||
|
||
@set BASE_DIR=%HOME%\.spf13-vim-3 | ||
IF NOT EXIST "%BASE_DIR%" ( | ||
call git clone --recursive -b 3.0 https://github.com/spf13/spf13-vim.git "%BASE_DIR%" | ||
@set APP_DIR=%HOME%\.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 "%BASE_DIR%" | ||
chdir /d "%APP_DIR%" | ||
call git pull | ||
chdir /d "%ORIGINAL_DIR%" | ||
call cd "%BASE_DIR%" | ||
call cd "%APP_DIR%" | ||
) | ||
|
||
call mklink "%HOME%\.vimrc" "%BASE_DIR%\.vimrc" | ||
call mklink "%HOME%\_vimrc" "%BASE_DIR%\.vimrc" | ||
call mklink "%HOME%\.vimrc.fork" "%BASE_DIR%\.vimrc.fork" | ||
call mklink "%HOME%\.vimrc.bundles" "%BASE_DIR%\.vimrc.bundles" | ||
call mklink "%HOME%\.vimrc.bundles.fork" "%BASE_DIR%\.vimrc.bundles.fork" | ||
call mklink "%HOME%\.vimrc.before" "%BASE_DIR%\.vimrc.before" | ||
call mklink "%HOME%\.vimrc.before.fork" "%BASE_DIR%\.vimrc.before.fork" | ||
call mklink /J "%HOME%\.vim" "%BASE_DIR%\.vim" | ||
call mklink "%HOME%\.vimrc" "%APP_DIR%\.vimrc" | ||
call mklink "%HOME%\_vimrc" "%APP_DIR%\.vimrc" | ||
call mklink "%HOME%\.vimrc.fork" "%APP_DIR%\.vimrc.fork" | ||
call mklink "%HOME%\.vimrc.bundles" "%APP_DIR%\.vimrc.bundles" | ||
call mklink "%HOME%\.vimrc.bundles.fork" "%APP_DIR%\.vimrc.bundles.fork" | ||
call mklink "%HOME%\.vimrc.before" "%APP_DIR%\.vimrc.before" | ||
call mklink "%HOME%\.vimrc.before.fork" "%APP_DIR%\.vimrc.before.fork" | ||
call mklink /J "%HOME%\.vim" "%APP_DIR%\.vim" | ||
|
||
IF NOT EXIST "%BASE_DIR%\.vim\bundle" ( | ||
call mkdir "%BASE_DIR%\.vim\bundle" | ||
IF NOT EXIST "%APP_DIR%\.vim\bundle" ( | ||
call mkdir "%APP_DIR%\.vim\bundle" | ||
) | ||
|
||
IF NOT EXIST "%HOME%/.vim/bundle/vundle" ( | ||
call git clone https://github.com/gmarik/vundle.git "%HOME%/.vim/bundle/vundle" | ||
) | ||
|
||
call vim -u "%BASE_DIR%/.vimrc.bundles" +BundleInstall! +BundleClean +qall | ||
call vim -u "%APP_DIR%/.vimrc.bundles" +BundleInstall! +BundleClean +qall |
This file contains 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
This file contains 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