-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvim-windows-install.cmd
More file actions
32 lines (27 loc) · 906 Bytes
/
vim-windows-install.cmd
File metadata and controls
32 lines (27 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%
@set APP_DIR=%HOME%\vimrc
IF NOT EXIST "%APP_DIR%" (
call git clone --recursive https://github.com/xieqi/vimrc.git "%APP_DIR%"
) ELSE (
@set ORIGINAL_DIR=%CD%
echo updating xieqi-vim
chdir /d "%APP_DIR%"
call git pull
chdir /d "%ORIGINAL_DIR%"
call cd "%APP_DIR%"
)
call mklink "%HOME%\.vimrc" "%APP_DIR%\.vimrc"
call mklink "%HOME%\_vimrc" "%APP_DIR%\.vimrc"
call mklink "%HOME%\.vimrc.bundles" "%APP_DIR%\.vimrc.bundles"
IF NOT EXIST "%HOME%\.vim\bundle" (
call mkdir "%HOME%\.vim\bundle"
)
IF NOT EXIST "%HOME%/.vim/bundle/Vundle.vim" (
call git clone https://github.com/VundleVim/Vundle.vim.git "%HOME%/.vim/bundle/Vundle.vim"
) ELSE (
call cd "%HOME%/.vim/bundle/Vundle.vim"
call git pull
call cd %HOME%
)
call vim -u "%HOME%/.vimrc" +PluginInstall! +PluginClean +qall