Skip to content

Instantly share code, notes, and snippets.

@ryanzyy
Last active October 11, 2018 04:19
Show Gist options
  • Save ryanzyy/cc94eb66e919992e96434dc85a28105f to your computer and use it in GitHub Desktop.
Save ryanzyy/cc94eb66e919992e96434dc85a28105f to your computer and use it in GitHub Desktop.

Configure msys2

pacman -S base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake

Clone VIM

git clone https://github.com/vim/vim --depth=1

Modify src\Make_ming.mak

OLE=yes
GUI=yes
MBYTE=yes
FEATURES=HUGE

#DYNAMIC_PYTHON3=yes
#PYTHON3=D:\Anaconda3
#PYTHON3_VER=36

#DYNAMIC_RUBY=yes
#RUBY=D:\Ruby
#RUBY_VER=24
#RUBY_API_VER_LONG=2.4.0

# Do not change this.
UNDER_CYGWIN = no
include Make_cyg_ming.mak

# vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0:

Compile

cd src

make -f Make_ming.mak (in msys2)

copy

Make a copy.cmd in vim/

@set SRC=.
@set DEST=vim81

xcopy %SRC%\runtime %DEST% /D /S /H /I /Y
xcopy %SRC%\src\xxd\xxd.exe %DEST% /D /Y
xcopy %SRC%\src\GvimExt\gvimext.dll %DEST% /D /Y
xcopy %SRC%\src\*.exe %DEST% /D /Y

Run the copy command (in windows command-line)

copy.cmd

Install vim

vim81/install.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment