diff --git a/install.bat b/install.bat new file mode 100644 index 0000000..c13cac7 --- /dev/null +++ b/install.bat @@ -0,0 +1,5 @@ +SET HP=%HOMEDRIVE%%HOMEPATH%\ +SET DP=%~dp0 +mklink /D %HP%vimfiles %DP%vim +mklink %HP%_vimrc %DP%vim\vimrc +mklink %HP%.gitconfig %DP%gitconfig diff --git a/vim/plug.vim b/vim/plug.vim index f4594b2..0bcba29 100644 --- a/vim/plug.vim +++ b/vim/plug.vim @@ -1,16 +1,18 @@ set nocompatible " be iMproved, required filetype off " required -if !filereadable(expand("~/.vim/autoload/plug.vim")) - if has("win32") +if has("win32") + if !filereadable(expand("~/vimfiles/autoload/plug.vim")) !curl -fLo \%USERPROFILE\%\.vim\autoload\plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim - else + endif + call plug#begin('~/vimfiles/plugged') +else + if !filereadable(expand("~/.vim/autoload/plug.vim")) !curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim endif + call plug#begin('~/.vim/plugged') endif -call plug#begin('~/.vim/plugged') - " color Plug 'thomasba/wombat256.vim' Plug 'altercation/vim-colors-solarized'