spf13-vim/spf13-vim-windows-xp-install.cmd
spf13 5d13b68930 Merge branch '3.0' of https://github.com/perfectworks/pw-vim into 4.0
# By perfectworks
# Via perfectworks
* '3.0' of https://github.com/perfectworks/pw-vim:
  Fix bootstrap.sh install
  use bundle helper to import plugin
  add command alias for neobundle to compatible with vundle
  Replace vundle by NeoBundle

Conflicts:
	.vimrc.bundles
2013-10-13 14:32:20 -04:00

34 lines
1.4 KiB
Batchfile

@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%" (
echo backing up existing vim config
@set today=%DATE%
@if exist "%HOME%\.vim" call xcopy /s/e/h/y/r/q/i "%HOME%\.vim" "%HOME%\.vim.%today%"
@if exist "%HOME%\.vimrc" call copy "%HOME%\.vimrc" "%HOME%\.vimrc.%today%"
@if exist "%HOME%\_vimrc" call copy "%HOME%\_vimrc" "%HOME%\_vimrc.%today%"
@if exist "%HOME%\.gvimrc" call copy "%HOME%\.gvimrc" "%HOME%\.gvimrc.%today%"
)
@if exist "%BASE_DIR%" (
@set ORIGINAL_DIR=%CD%
echo updating spf13-vim
chdir /d "%BASE_DIR%" && git pull
chdir /d "%ORIGINAL_DIR%"
) else (
echo cloning spf13-vim
call git clone --recursive -b 3.0 git://github.com/spf13/spf13-vim.git "%BASE_DIR%"
)
@if not exist "%BASE_DIR%\.vim\bundle" call mkdir "%BASE_DIR%\.vim\bundle"
call xcopy /s/e/h/y/r/q/i "%BASE_DIR%\.vim" "%HOME%\.vim"
call copy "%BASE_DIR%\.vimrc" "%HOME%\.vimrc"
call copy "%BASE_DIR%\.vimrc" "%HOME%\_vimrc"
call copy "%BASE_DIR%\.vimrc.bundles" "%HOME%\.vimrc.bundles"
call copy "%BASE_DIR%\.vimrc.before" "%HOME%\.vimrc.before"
@if not exist "%HOME%/.vim/bundle/neobundle" call git clone https://github.com/Shougo/neobundle.vim "%HOME%/.vim/bundle/neobundle.vim"
call vim -u "%BASE_DIR%/.vimrc.bundles" - +BundleInstall! +BundleClean +qall