Skip to content
This repository
Newer
Older
100644 37 lines (31 sloc) 1.65 kb
855e7ffd »
2012-10-12 windows xp installer .cmd
1 @if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
2 @if not exist "%HOME%" @set HOME=%USERPROFILE%
3
59f9d87b »
2014-02-10 rename BASE_DIR to APP_DIR
4 @set APP_DIR=%HOME%\.spf13-vim-3
027746b7 »
2012-10-17 add backup .vim files in xp-installer
5
59f9d87b »
2014-02-10 rename BASE_DIR to APP_DIR
6 @if not exist "%APP_DIR%" (
027746b7 »
2012-10-17 add backup .vim files in xp-installer
7 echo backing up existing vim config
8 @set today=%DATE%
9 @if exist "%HOME%\.vim" call xcopy /s/e/h/y/r/q/i "%HOME%\.vim" "%HOME%\.vim.%today%"
10 @if exist "%HOME%\.vimrc" call copy "%HOME%\.vimrc" "%HOME%\.vimrc.%today%"
11 @if exist "%HOME%\_vimrc" call copy "%HOME%\_vimrc" "%HOME%\_vimrc.%today%"
12 @if exist "%HOME%\.gvimrc" call copy "%HOME%\.gvimrc" "%HOME%\.gvimrc.%today%"
13 )
14
59f9d87b »
2014-02-10 rename BASE_DIR to APP_DIR
15 @if exist "%APP_DIR%" (
b72c6811 »
2012-10-17 add update functionality to xp-installer
16 @set ORIGINAL_DIR=%CD%
17 echo updating spf13-vim
59f9d87b »
2014-02-10 rename BASE_DIR to APP_DIR
18 chdir /d "%APP_DIR%" && git pull
b72c6811 »
2012-10-17 add update functionality to xp-installer
19 chdir /d "%ORIGINAL_DIR%"
20 ) else (
21 echo cloning spf13-vim
59f9d87b »
2014-02-10 rename BASE_DIR to APP_DIR
22 call git clone --recursive -b 3.0 git://github.com/spf13/spf13-vim.git "%APP_DIR%"
b72c6811 »
2012-10-17 add update functionality to xp-installer
23 )
24
59f9d87b »
2014-02-10 rename BASE_DIR to APP_DIR
25 @if not exist "%APP_DIR%\.vim\bundle" call mkdir "%APP_DIR%\.vim\bundle"
26 call xcopy /s/e/h/y/r/q/i "%APP_DIR%\.vim" "%HOME%\.vim"
27 call copy "%APP_DIR%\.vimrc" "%HOME%\.vimrc"
28 call copy "%APP_DIR%\.vimrc" "%HOME%\_vimrc"
29 call copy "%APP_DIR%\.vimrc.fork" "%HOME%\.vimrc.fork"
30 call copy "%APP_DIR%\.vimrc.bundles" "%HOME%\.vimrc.bundles"
31 call copy "%APP_DIR%\.vimrc.bundles.fork" "%HOME%\.vimrc.bundles.fork"
32 call copy "%APP_DIR%\.vimrc.before" "%HOME%\.vimrc.before"
33 call copy "%APP_DIR%\.vimrc.before.fork" "%HOME%\.vimrc.before.fork"
855e7ffd »
2012-10-12 windows xp installer .cmd
34
966553b8 »
2013-06-23 Use https links where possible
35 @if not exist "%HOME%/.vim/bundle/vundle" call git clone https://github.com/gmarik/vundle.git "%HOME%/.vim/bundle/vundle"
59f9d87b »
2014-02-10 rename BASE_DIR to APP_DIR
36 call vim -u "%APP_DIR%/.vimrc.bundles" - +BundleInstall! +BundleClean +qall
Something went wrong with that request. Please try again.