Last active
October 16, 2016 16:31
-
-
Save NigoroJr/9900648 to your computer and use it in GitHub Desktop.
Sets up Vim for Windows. Clones neobundle.vim and vimproc.vim, and builds necessary files for vimproc.vim
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
:: batch file that copies the necessary files for Vim | |
:: You need to have cygwin installed to use this | |
:: | |
:: What it does | |
:: * Copies .vim, .vimrc, .gvimrc, and some of my separate .vimrc files to | |
:: home directory | |
:: * clones neobundle.vim from github | |
:: * clones vimproc.vim from github and builds the dll for cygwin | |
:: | |
:: This script must be executed by doubly clicking the .bat file from Windows | |
:: Explorer. Otherwise if you execute this from cmd, it won't be able to find | |
:: build.sh, which is needed to build the necessary files for running | |
:: vimproc.vim | |
:: | |
:: vimproc_src is the directory where you have vimproc_win64.dll and/or | |
:: vimproc_win32.dll | |
@echo off | |
set src=m:\dotfiles | |
set vimproc_src=m:\WinBin\Vim | |
set dest=%HOMEDRIVE%%HOMEPATH% | |
set dest_posix=/cygdrive/%HOMEDRIVE::=%%HOMEPATH:\=/% | |
:: Copy vim files | |
xcopy /Y /i /s %src%\.vim %dest%\.vim | |
copy /Y %src%\.vimrc %dest%\_vimrc | |
copy /Y %src%\.gvimrc %dest%\_gvimrc | |
copy /Y %src%\.vimrc.keybindings %dest%\.vimrc.keybindings | |
copy /Y %src%\.vimrc.user %dest%\.vimrc.user | |
:: clone neobundle.vim | |
::git clone https://github.com/Shougo/neobundle.vim %dest%\.vim\bundle\neobundle.vim | |
git clone https://github.com/Shougo/neobundle.vim %dest_posix%/.vim/bundle/neobundle.vim | |
:: Set up vimproc.vim | |
::git clone https://github.com/Shougo/vimproc.vim %dest%\.vim\bundle\vimproc.vim | |
git clone https://github.com/Shougo/vimproc.vim %dest_posix%/.vim/bundle/vimproc.vim | |
:: Copy files necessary for vimproc.vim | |
copy /Y "%vimproc_src%\vimproc_win32.dll" "%dest%\.vim\bundle\vimproc.vim\autoload" | |
copy /Y "%vimproc_src%\vimproc_win64.dll" "%dest%\.vim\bundle\vimproc.vim\autoload" | |
:: Build vimproc.vim for cygwin | |
:: Assume vimproc_build.sh is in the same directory as this bat file | |
C:\cygwin\bin\bash vimproc_build.sh %dest_posix% | |
echo Finished setting up Vim! | |
echo Run :NeoBundleInstall in Vim | |
sleep 5 |
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 script builds the dll required for vimproc.vim under cygwin environment | |
DEST=$1 | |
if [ ! -d $DEST/.vim/bundle/vimproc.vim ]; then | |
echo "No vimproc.vim found" | |
exit 0 | |
fi | |
cd $DEST/.vim/bundle/vimproc.vim | |
make -f make_cygwin.mak | |
# vim: ff=unix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment