blob: 0ed5e2f4a7d434588ed0f0c757b3f2649a927375 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001INSTALLpc.txt - Installation of Vim on PC
2
3This file contains instructions for compiling Vim. If you already have an
4executable version of Vim, you don't need this.
5
Bram Moolenaar18cfa942017-10-08 17:58:44 +02006You can find the lastest here: https://github.com/vim/vim-win32-installer
7This page also has links to install support for interfaces such as Perl,
8Python, Lua, etc.
Bram Moolenaar071d4272004-06-13 20:20:40 +00009
10The file "feature.h" can be edited to match your preferences. You can skip
11this, then you will get the default behavior as is documented, which should
12be fine for most people.
13
Bram Moolenaar02cfac82016-04-21 14:34:58 +020014This document assumes that you are building Vim for Win32 or later (Windows
15XP/2003/Vista/7/8/10). There are also instructions for pre-XP systems, but
16they might no longer work.
Bram Moolenaar362e1a32006-03-06 23:29:24 +000017
Bram Moolenaar18cfa942017-10-08 17:58:44 +020018The recommended way is to build a 32 bit Vim, also on 64 bit systems. You can
19build a 64 bit Vim if you like, the executable will be bigger and Vim wan't be
20any faster, but you can edit files larger than 2 Gbyte.
21
Bram Moolenaar071d4272004-06-13 20:20:40 +000022
23Contents:
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000241. Microsoft Visual C++
252. Using MinGW
263. Cygwin
274. Borland
285. Cross compiling for Win32 from a Linux machine
296. Building with Python support
Bram Moolenaar30a89472016-01-10 14:35:58 +0100307. Building with Python3 support
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200318. Building with Racket or MzScheme support
Bram Moolenaar30a89472016-01-10 14:35:58 +0100329. Building with Lua support
3310. Building with Perl support
3411. Building with Ruby support
3512. Building with Tcl support
Bram Moolenaar8f84c3a2017-07-22 16:14:44 +02003613. Building with Terminal support
3714. Windows 3.1
3815. MS-DOS
Bram Moolenaar362e1a32006-03-06 23:29:24 +000039
Bram Moolenaar8f84c3a2017-07-22 16:14:44 +02004016. Installing after building from sources
Bram Moolenaar734d9982011-07-15 13:52:04 +020041
42
Bram Moolenaar18cfa942017-10-08 17:58:44 +020043The currently recommended way (that means it has been verified to work) is
44using the "Visual Studio Community 2015" installation. This includes the SDK
45needed to target Windows XP. But not older Windows versions (95, 97), see
46|msvc-2008-express| below for that
Bram Moolenaar071d4272004-06-13 20:20:40 +000047
48
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000491. Microsoft Visual C++
50=======================
51
Bram Moolenaar73f44392017-10-07 18:38:43 +020052We do not provide download links, since Microsoft keeps changing them. You
Bram Moolenaar18cfa942017-10-08 17:58:44 +020053can search for "Visual Studio Community 2015", for example. You will need to
Bram Moolenaar73f44392017-10-07 18:38:43 +020054create a Microsoft account (it's free).
55
56
Bram Moolenaar362e1a32006-03-06 23:29:24 +000057Visual Studio
58-------------
59
Bram Moolenaar30a89472016-01-10 14:35:58 +010060Building with Visual Studio (VS 98, VS .NET, VS .NET 2003, VS 2005, VS 2008,
61VS2010, VS2012, VS2013 and VS2015) is straightforward. (These instructions
62should also work for VS 4 and VS 5.)
Bram Moolenaar362e1a32006-03-06 23:29:24 +000063
Bram Moolenaar73f44392017-10-07 18:38:43 +020064Using VS C++ 2008 Express is recommended if you need the binary to run on
65Windows 95 or 97, see |msvc-2008-express| below.
Bram Moolenaar97cc2382012-10-03 21:46:54 +020066
Bram Moolenaar362e1a32006-03-06 23:29:24 +000067To build Vim from the command line with MSVC, use Make_mvc.mak.
68Visual Studio installed a batch file called vcvars32.bat, which you must
69run to set up paths for nmake and MSVC.
70
Bram Moolenaarc9b4b052006-04-30 18:54:39 +000071nmake -f Make_mvc.mak console Win32 SDK or Microsoft Visual C++
72nmake -f Make_mvc.mak GUI=yes GUI Microsoft Visual C++
73nmake -f Make_mvc.mak OLE=yes OLE Microsoft Visual C++
Bram Moolenaar362e1a32006-03-06 23:29:24 +000074nmake -f Make_mvc.mak PERL=C:\Perl PYTHON=C:\Python etc.
Bram Moolenaarc9b4b052006-04-30 18:54:39 +000075 Perl, Python, etc.
Bram Moolenaar362e1a32006-03-06 23:29:24 +000076
77Make_mvc.mak allows a Vim to be built with various different features and
78debug support. Debugging with MS Devstudio is provided by Make_dvc.mak.
79For a description of the use of Make_dvc.mak, look in Make_mvc.mak.
80
81For compiling Gvim with IME support on far-east Windows, add IME=yes
82to the parameters you pass to Make_mvc.mak.
83
84To build Vim from within the Visual Studio IDE, open the Make_ivc.mak project.
85(Note: Make_ivc.mak is not as rich as Make_mvc.mak, which allows for
86far more configuration.) Make_ivc.mak can also be built with nmake.
87
88nmake -f Make_ivc.mak CFG="Vim - Win32 Release gvim"
Bram Moolenaarc9b4b052006-04-30 18:54:39 +000089 GUI Microsoft Visual C++ 4.x or later
Bram Moolenaar362e1a32006-03-06 23:29:24 +000090nmake -f Make_ivc.mak CFG="Vim - Win32 Release gvim OLE"
Bram Moolenaarc9b4b052006-04-30 18:54:39 +000091 OLE Microsoft Visual C++ 4.x or later
Bram Moolenaar362e1a32006-03-06 23:29:24 +000092
93See the specific files for comments and options.
94
95These files have been supplied by George V. Reilly, Ben Singer, Ken Scott and
96Ron Aaron; they have been tested.
97
98
Bram Moolenaar02cfac82016-04-21 14:34:58 +020099Visual C++ 2008 Express Edition *msvc-2008-express*
100-------------------------------
101
102Visual C++ 2008 Express Edition can be downloaded for free from:
103 http://www.microsoft.com/express/downloads/
104This includes the IDE and the debugger.
105
106To set the environment execute the msvc2008.bat script. You can then build
107Vim with Make_mvc.mak.
108
109For building 64 bit binaries you also need to install the SDK:
110"Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1"
111You don't need the examples and documentation.
112
113If you get an error that Win32.mak can't be found, you have to set the
114variable SDK_INCLUDE_DIR. For example, on Windows 10, installation of MSVC
115puts include files in the following directory:
116 set SDK_INCLUDE_DIR=C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include
117
118
119Visual C++ 2010 Express Edition *msvc-2010-express*
120-------------------------------
121
122Visual C++ 2010 Express Edition can be downloaded for free from:
123 http://www.microsoft.com/express/vc/Default.aspx
124This includes the IDE and the debugger.
125
126To set the environment execute the msvc2010.bat script. You can then build
127Vim with Make_mvc.mak.
128
129
Bram Moolenaar73f44392017-10-07 18:38:43 +0200130Targeting Windows XP with MSVC 2012 and later *new-msvc-windows-xp*
131---------------------------------------------
Bram Moolenaar02cfac82016-04-21 14:34:58 +0200132
133Beginning with Visual C++ 2012, Microsoft changed the behavior of LINK.EXE
134so that it targets Windows 6.0 (Vista) by default. In order to override
135this, the target Windows version number needs to be passed to LINK like
136follows:
137 LINK ... /subsystem:console,5.01
138
139Make_mvc.mak now supports a macro SUBSYSTEM_VER to pass the Windows version.
Bram Moolenaar73f44392017-10-07 18:38:43 +0200140Use lines like follows to target Windows XP x86 (assuming using Visual C++
1412012 under 64-bit Windows):
Bram Moolenaar02cfac82016-04-21 14:34:58 +0200142 set WinSdk71=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A
Bram Moolenaar02cfac82016-04-21 14:34:58 +0200143 set INCLUDE=%WinSdk71%\Include;%INCLUDE%
144 set LIB=%WinSdk71%\Lib;%LIB%
Bram Moolenaar02cfac82016-04-21 14:34:58 +0200145 set CL=/D_USING_V110_SDK71_
146 nmake -f Make_mvc.mak ... WINVER=0x0501 SUBSYSTEM_VER=5.01
147
Bram Moolenaar73f44392017-10-07 18:38:43 +0200148To target Windows XP x64 instead of x86, you need to change the settings of
149LIB and SUBSYSTEM_VER:
150 ...
151 set LIB=%WinSdk71%\Lib\x64;%LIB%
152 ...
153 nmake -f Make_mvc.mak ... WINVER=0x0501 SUBSYSTEM_VER=5.02
154
155If you use Visual C++ 2015 (either Express or Community Edition), executing
156msvc2015.bat will set them automatically. For x86 builds run this without
157options:
158 msvc2015
159For x64 builds run this with the "x86_amd64" option:
160 msvc2015 x86_amd64
161
Bram Moolenaar02cfac82016-04-21 14:34:58 +0200162The following Visual C++ team blog can serve as a reference page:
163 http://blogs.msdn.com/b/vcblog/archive/2012/10/08/windows-xp-targeting-with-c-in-visual-studio-2012.aspx
164
165
166OLDER VERSIONS
167
168The minimal supported version is Windows XP. Building with older compilers
169might still work, but these instructions might be outdated.
170
171If you need the executable to run on Windows 98 or ME, use the 2003 one
172|msvc-2003-toolkit|.
173
Bram Moolenaarc236c162008-07-13 17:41:49 +0000174Visual C++ Toolkit 2003 *msvc-2003-toolkit*
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000175-----------------------
176
Bram Moolenaarc236c162008-07-13 17:41:49 +0000177You could download the Microsoft Visual C++ Toolkit 2003 from
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000178 http://msdn.microsoft.com/visualc/vctoolkit2003/
Bram Moolenaarc236c162008-07-13 17:41:49 +0000179Unfortunately this URL is no longer valid. Inofficial downloads appear to be
180available from links mentioned on these pages (use at your own risk):
181 http://www.filewatcher.com/m/VCToolkitSetup.exe.32952488.0.0.html
182 http://feargame.net/wiki/index.php?title=Building_Source_with_the_VC2003_Toolkit
183
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000184This contains the command-line tools (compiler, linker, CRT headers,
185and libraries) for Visual Studio .NET 2003, but not the Visual Studio IDE.
186To compile and debug Vim with the VC2003 Toolkit, you will also need
187|ms-platform-sdk|, |dotnet-1.1-redist|, |dotnet-1.1-sdk|,
188and |windbg-download|.
189
Bram Moolenaar0fde2902008-03-16 13:54:13 +0000190It's easier to download Visual C++ 2008 Express Edition, |msvc-2008-express|,
191which is freely available in perpetuity.
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000192
193The free Code::Blocks IDE works with the VC2003 Toolkit, as described at
194 http://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE
195(This site also takes you through configuring a number of other
196free C compilers for Win32.)
197
198To compile Vim using the VC2003 Toolkit and Make_mvc.mak, you must first
199execute the following commands in a cmd.exe window (the msvcsetup.bat batch
200file can be used):
Bram Moolenaarc9b4b052006-04-30 18:54:39 +0000201
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000202 set PATH=%SystemRoot%\Microsoft.NET\Framework\v1.1.4322;%PATH%
203 call "%VCToolkitInstallDir%vcvars32.bat"
204 set MSVCVer=7.1
205 call "%ProgramFiles%\Microsoft Platform SDK\SetEnv.Cmd"
206 set LIB=%ProgramFiles%\Microsoft Visual Studio .NET 2003\Vc7\lib;%LIB%
207
208Now you can build Vim with Make_mvc.mak.
209
210
Bram Moolenaarc9b4b052006-04-30 18:54:39 +0000211Getting the Windows Platform SDK *ms-platform-sdk*
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000212
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200213You will also need a copy of the Windows Platform SDK. Specifically, you need
214the Windows Core SDK subset of the Platform SDK, which contains the Windows
215headers and libraries. You need to search for it, Microsoft keeps changing
216the URL.
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000217
218
219Getting the .NET Framework 1.1 Runtime *dotnet-1.1-redist*
220
221You need the .NET Framework 1.1 Redistributable Package from
222 http://www.microsoft.com/downloads/details.aspx?familyid=262d25e3-f589-4842-8157-034d1e7cf3a3
223or from Windows Update:
224 http://windowsupdate.microsoft.com/
225This is needed to install |dotnet-1.1-sdk|. It also contains cvtres.exe,
226which is needed to link Vim.
227
228
Bram Moolenaarc9b4b052006-04-30 18:54:39 +0000229Getting the .NET Framework 1.1 SDK *dotnet-1.1-sdk*
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000230
231You need the .NET Framework 1.1 SDK from
232 http://www.microsoft.com/downloads/details.aspx?familyid=9b3a2ca6-3647-4070-9f41-a333c6b9181d
233This contains some additional libraries needed to compile Vim,
234such as msvcrt.lib. You must install |dotnet-1.1-redist| before
235installing the .NET 1.1 SDK.
236
237
Bram Moolenaarc9b4b052006-04-30 18:54:39 +0000238Getting the WinDbg debugger *windbg-download*
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000239
240The Debugging Tools for Windows can be downloaded from
241 http://www.microsoft.com/whdc/devtools/debugging/default.mspx
242This includes the WinDbg debugger, which you will want if you ever need
243to debug Vim itself. An earlier version of the Debugging Tools
244is also available through the Platform SDK, |ms-platform-sdk|.
245
246
Bram Moolenaar98385dc2008-06-20 14:52:32 +0000247Visual C++ 2005 Express Edition *msvc-2005-express*
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000248-------------------------------
249
Bram Moolenaarfc1421e2006-04-20 22:17:20 +0000250Visual C++ 2005 Express Edition can be downloaded for free from:
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000251 http://msdn.microsoft.com/vstudio/express/visualC/default.aspx
252This includes the IDE and the debugger. You will also need
253|ms-platform-sdk|. You can build Vim with Make_mvc.mak.
254
255Instructions for integrating the Platform SDK into VC Express:
256 http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx
257
258
Bram Moolenaarce2f2e02014-08-22 18:12:57 +0200259
Bram Moolenaar362e1a32006-03-06 23:29:24 +00002602. MinGW
261========
262
263(written by Ron Aaron: <ronaharon@yahoo.com>)
264
265This is about how to produce a Win32 binary of gvim with MinGW.
266
267First, you need to get the 'mingw32' compiler, which is free for the download
268at:
269
270 http://www.mingw.org/
271
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100272or you can use 'MinGW-w64' compiler.
273
274 http://mingw-w64.sourceforge.net/
275
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100276Or a compiler provided on msys2:
277
278 https://msys2.github.io/
279
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000280Once you have downloaded the compiler binaries, unpack them on your hard disk
281somewhere, and put them on your PATH. If you are on Win95/98 you can edit
282your AUTOEXEC.BAT file with a line like:
283
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100284 set PATH=C:\MinGW\bin;%PATH%
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000285
286or on NT/2000/XP, go to the Control Panel, (Performance and Maintenance),
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100287System, Advanced, and edit the environment from there. If you use msys2
288compilers, set your installed paths:
289
290 C:\msys2\mingw32\bin
Bram Moolenaar02cfac82016-04-21 14:34:58 +0200291or
292 C:\msys64\mingw32\bin
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100293
294for 32bit. And 64bit:
295
296 C:\msys2\mingw64\bin
Bram Moolenaar02cfac82016-04-21 14:34:58 +0200297or
298 C:\msys64\mingw64\bin
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000299
300Test if gcc is on your path. From a CMD (or COMMAND on '95/98) window:
301
302 C:\> gcc --version
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100303 gcc (GCC) 4.8.1
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000304
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100305 C:\> mingw32-make --version
306 GNU Make 3.82.90 (...etc...)
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000307
308Now you are ready to rock 'n' roll. Unpack the vim sources (look on
309www.vim.org for exactly which version of the vim files you need).
310
311Change directory to 'vim\src':
312
313 C:\> cd vim\src
314 C:\VIM\SRC>
315
316and you type:
317
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100318 mingw32-make -f Make_ming.mak gvim.exe
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000319
320After churning for a while, you will end up with 'gvim.exe' in the 'vim\src'
321directory.
322
323You should not need to do *any* editing of any files to get vim compiled this
324way. If, for some reason, you want the console-mode-only version of vim (this
Bram Moolenaar5e3dae82010-03-02 16:19:40 +0100325is NOT recommended on Win32, especially on '95/'98!!!), you can use:
Bram Moolenaard8e21d32010-01-06 21:16:31 +0100326
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100327 mingw32-make -f Make_ming.mak GUI=no vim.exe
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000328
329If you are dismayed by how big the EXE is, I strongly recommend you get 'UPX'
330(also free!) and compress the file (typical compression is 50%). UPX can be
331found at
332 http://www.upx.org/
333
Bram Moolenaar91856272012-02-29 16:56:39 +0100334As of 2011, UPX still does not support compressing 64-bit EXE's; if you have
335built a 64-bit vim then an alternative to UPX is 'MPRESS'. MPRESS can be found
336at:
337 http://www.matcode.com/mpress.htm
338
339
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000340ADDITION: NLS support with MinGW
341
342(by Eduardo F. Amatria <eferna1@platea.pntic.mec.es>)
343
344If you want National Language Support, read the file src/po/README_mingw.txt.
345You need to uncomment lines in Make_ming.mak to have NLS defined.
346
347
3483. Cygwin
349=========
350
351Use Make_cyg.mak with Cygwin's GCC. See
352 http://users.skynet.be/antoine.mechelynck/vim/compile.htm
353
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100354With Cygnus gcc you should use the Unix Makefile instead (you need to get the
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000355Unix archive then). Then you get a Cygwin application (feels like Vim is
Bram Moolenaar48f80c22010-02-24 15:08:27 +0100356running on Unix), while with Make_cyg.mak you get a Windows application (like
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000357with the other makefiles).
358
359
3604. Borland
361===========
362
363Use Make_bc5.mak with Borland C++ 5.x. See
364 http://users.skynet.be/antoine.mechelynck/vim/compile.htm
365
366
3675. Cross compiling for Win32 from a Linux machine
368=================================================
369
370[Update of 1) needs to be verified]
371
372If you like, you can compile the 'mingw' Win32 version from the comfort of
373your Linux (or other unix) box. To do this, you need to follow a few steps:
374 1) Install the mingw32 cross-compiler. See
Bram Moolenaard8e21d32010-01-06 21:16:31 +0100375 http://www.mingw.org/wiki/LinuxCrossMinGW
Bram Moolenaarc9b4b052006-04-30 18:54:39 +0000376 http://www.libsdl.org/extras/win32/cross/README.txt
Bram Moolenaara7241f52008-06-24 20:39:31 +0000377 2) Get and unpack both the Unix sources and the extra archive
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100378 3) in 'Make_cyg_ming.mak', set 'CROSS' to 'yes' instead of 'no'.
379 Make further changes to 'Make_cyg_ming.mak' and 'Make_ming.mak' as you
380 wish. If your cross-compiler prefix differs from the predefined value,
Bram Moolenaard8e21d32010-01-06 21:16:31 +0100381 set 'CROSS_COMPILE' corresponding.
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000382 4) make -f Make_ming.mak gvim.exe
383
384Now you have created the Windows binary from your Linux box! Have fun...
385
386
3876. Building with Python support
388===============================
389
Bram Moolenaar97cc2382012-10-03 21:46:54 +0200390For building with MSVC 2008 the "Windows Installer" from www.python.org
391works fine.
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000392
Bram Moolenaar30a89472016-01-10 14:35:58 +0100393When building, you need to set the following variables at least:
394
395 PYTHON: Where Python is installed. E.g. C:\Python27
396 DYNAMIC_PYTHON: Whether dynamic linking is used. Usually, set to yes.
397 PYTHON_VER: Python version. E.g. 27 for Python 2.7.X.
398
399E.g. When using MSVC (as one line):
400
401 nmake -f Make_mvc.mak
402 PYTHON=C:\Python27 DYNAMIC_PYTHON=yes PYTHON_VER=27
403
Bram Moolenaar97cc2382012-10-03 21:46:54 +0200404(rest written by Ron Aaron: <ronaharon@yahoo.com>)
405
406Building with the mingw32 compiler, and the ActiveState ActivePython:
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000407 http://www.ActiveState.com/Products/ActivePython/
408
409After installing the ActivePython, you will have to create a 'mingw32'
410'libpython20.a' to link with:
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100411 cd $PYTHON/libs
412 pexports python20.dll > python20.def
413 dlltool -d python20.def -l libpython20.a
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000414
415Once that is done, edit the 'Make_ming.mak' so the PYTHON variable points to
416the root of the Python installation (C:\Python20, for example). If you are
417cross-compiling on Linux with the mingw32 setup, you need to also convert all
418the 'Include' files to *unix* line-endings. This bash command will do it
419easily:
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100420 for fil in *.h ; do vim -e -c 'set ff=unix|w|q' $fil
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000421
422Now just do:
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100423 make -f Make_ming.mak gvim.exe
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000424
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100425And if you use msys2 to build python support (as one line):
426
427 mingw32-make -f Make_ming.mak PYTHON=c:/msys64/mingw64
428 PYTHON_HOME=c:/msys64/mingw64
429 PYTHONINC=-Ic:/msys64/mingw64/include/python2.7
430 DYNAMIC_PYTHON=yes
431 PYTHON_VER=27
432 DYNAMIC_PYTHON_DLL=libpython2.7.dll
433 ARCH=x86-64
434 STATIC_STDCPLUS=yes
435
436You will end up with a Python-enabled, Win32 version. Enjoy!
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000437
438
Bram Moolenaar30a89472016-01-10 14:35:58 +01004397. Building with Python3 support
440================================
441
442For building with MSVC 2008 the "Windows Installer" from www.python.org
443works fine. Python 3.4 is recommended.
444
445When building, you need to set the following variables at least:
446
447 PYTHON3: Where Python3 is installed. E.g. C:\Python34
448 DYNAMIC_PYTHON3: Whether dynamic linking is used. Usually, set to yes.
449 PYTHON3_VER: Python3 version. E.g. 34 for Python 3.4.X.
450
451E.g. When using MSVC (as one line):
452
453 nmake -f Make_mvc.mak
454 PYTHON3=C:\Python34 DYNAMIC_PYTHON3=yes PYTHON3_VER=34
455
456
Bram Moolenaar18cfa942017-10-08 17:58:44 +02004578. Building with Racket or MzScheme support
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100458========================================
459
Bram Moolenaar18cfa942017-10-08 17:58:44 +02004601) Building with Racket support (newest)
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100461
462MzScheme and PLT Scheme names have been rebranded as Racket. Vim with Racket
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200463support can be built with either MSVC or MinGW (or Cygwin).
464Get it from https://download.racket-lang.org/
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100465
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200466Copy lib/libracket{version}.dll to your Windows system directory. The system
467directory depends on your Windows bitness and Vim bitness:
468 32-bit Vim on 32-bit Windows: C:\Windows\System32
469 32-bit Vim on 64-bit Windows: C:\Windows\SysWOW64
470 64-bit Vim on 64-bit Windows: C:\Windows\System32
471
472For building you need to set the following variables:
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100473
474 MZSCHEME: Where Racket is installed.
475 E.g. C:\Program Files (x86)\Racket
476 DYNAMIC_MZSCHEME: Whether dynamic linking is used. Usually, set to yes.
Bram Moolenaarf55e4c82017-08-01 20:44:53 +0200477 MZSCHEME_VER: Racket DLL version which is used for the file name.
Bram Moolenaar73f44392017-10-07 18:38:43 +0200478 See below for a list of MZSCHEME_VER.
Bram Moolenaarf55e4c82017-08-01 20:44:53 +0200479 The DLL can be found under the lib directory. E.g.
480 C:\Program Files (x86)\Racket\lib\libracket3m_XXXXXX.dll
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100481 MZSCHEME_COLLECTS: (Optional) Path of the collects directory used at
482 runtime. Default: $(MZSCHEME)\collects
483 User can override this with the PLTCOLLECTS environment
484 variable.
485
Bram Moolenaar73f44392017-10-07 18:38:43 +0200486List of MZSCHEME_VER (incomplete):
487
488 Racket ver. | MZSCHEME_VER
489 ==========================
490 6.3 | 3m_9z0ds0
491 6.6 | 3m_a0solc
492 6.8 | 3m_a1zjsw
493 6.10 | 3m_a36fs8
494
495
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100496E.g. When using MSVC (as one line):
497
498 nmake -f Make_mvc.mak
499 MZSCHEME="C:\Program Files (x86)\Racket" DYNAMIC_MZSCHEME=yes
500 MZSCHEME_VER=3m_9z0ds0
501
502Or when using MinGW (as one line):
503
504 mingw32-make -f Make_ming.mak
505 MZSCHEME='C:/Program\ Files\ (x86)/Racket' DYNAMIC_MZSCHEME=yes
506 MZSCHEME_VER=3m_9z0ds0
507
508 Spaces should be escaped with '\'.
509
510
Bram Moolenaar18cfa942017-10-08 17:58:44 +02005112) Building with MzScheme support (older)
512
513(written by Sergey Khorev <sergey.khorev@gmail.com>)
514
515Vim with MzScheme (http://www.plt-scheme.org/software/mzscheme) support can
516be built with either MSVC, or MinGW, or Cygwin. Supported versions are 205 and
517above (including 299 and 30x series).
518
519The MSVC build is quite straightforward. Simply invoke (in one line)
520nmake -fMake_mvc.mak MZSCHEME=<Path-to-MzScheme>
521 [MZSCHEME_VER=<MzScheme-version>] [DYNAMIC_MZSCHEME=<yes or no>]
522where <MzScheme-version> is the last seven characters from MzScheme dll name
523(libmzschXXXXXXX.dll).
524If DYNAMIC_MZSCHEME=yes, resulting executable will not depend on MzScheme
525DLL's, but will load them in runtime on demand.
526
527Building dynamic MzScheme support on MinGW and Cygwin is similar. Take into
528account that <Path-to-MzScheme> should contain slashes rather than backslashes
529(e.g. d:/Develop/MzScheme)
530
531"Static" MzScheme support (Vim executable will depend on MzScheme DLLs
532explicitly) on MinGW and Cygwin requires additional step.
533
534libmzschXXXXXXX.dll and libmzgcXXXXXXX.dll should be copied from
535%WINDOWS%\System32 to other location (either build directory, some temporary
536dir or even MzScheme home).
537
538Pass that path as MZSCHEME_DLLS parameter for Make. E.g.,
539make -f Make_cyg.mak MZSCHEME=d:/Develop/MzScheme MZSCHEME_VER=209_000
540 MZSCHEME_DLLS=c:/Temp DYNAMIC_MZSCHEME=no
541
542After a successful build, these dlls can be freely removed, leaving them in
543%WINDOWS%\System32 only.
544
545
546
Bram Moolenaar30a89472016-01-10 14:35:58 +01005479. Building with Lua support
548============================
549
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100550Vim with Lua support can be built with either MSVC or MinGW (or maybe Cygwin).
551You can use binaries from LuaBinaries: http://luabinaries.sourceforge.net/
552This also applies to when you get a Vim executable and don't build yourself,
553do the part up to "Build".
Bram Moolenaar30a89472016-01-10 14:35:58 +0100554
5551) Download and install LuaBinaries
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100556
Bram Moolenaar30a89472016-01-10 14:35:58 +0100557Go to the Download page of LuaBinaries:
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100558 http://luabinaries.sourceforge.net/download.html
Bram Moolenaar30a89472016-01-10 14:35:58 +0100559
560Download lua-X.Y.Z_Win32_dllw4_lib.zip for x86 or
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100561lua-X.Y.Z_Win64_dllw4_lib.zip for x64. You can use them both for MSVC and
Bram Moolenaar30a89472016-01-10 14:35:58 +0100562MinGW.
563
564Unpack it to a working directory. E.g. C:\projects\lua53.
565Lua's header files will be installed under the include directory.
566
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100567Copy luaXY.dll to your Windows system directory. The system directory depends
568on your Windows bitness and Vim bitness:
569 32-bit Vim on 32-bit Windows: C:\Windows\System32
570 32-bit Vim on 64-bit Windows: C:\Windows\SysWOW64
571 64-bit Vim on 64-bit Windows: C:\Windows\System32
572
573Or another option is copying luaXY.dll to the directory where gvim.exe
574(or vim.exe) is.
575
Bram Moolenaar30a89472016-01-10 14:35:58 +0100576
5772) Build
Bram Moolenaar30a89472016-01-10 14:35:58 +0100578
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100579You need to set LUA, DYNAMIC_LUA and LUA_VER.
580
581 LUA: Where Lua's header files are installed. E.g. C:\projects\lua53.
582 DYNAMIC_LUA: Whether dynamic linking is used. Set to yes.
583 LUA_VER: Lua version. E.g. 53 for Lua 5.3.X.
Bram Moolenaar30a89472016-01-10 14:35:58 +0100584
585E.g. When using MSVC (as one line):
586
587 nmake -f Make_mvc.mak
588 LUA=C:\projects\lua53 DYNAMIC_LUA=yes LUA_VER=53
589
590Or when using MinGW (as one line):
591
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200592 mingw32-make -f Make_ming.mak
Bram Moolenaar30a89472016-01-10 14:35:58 +0100593 LUA=C:\projects\lua53 DYNAMIC_LUA=yes LUA_VER=53
594
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100595
596Or when using Cygwin (as one line) (untested):
Bram Moolenaar30a89472016-01-10 14:35:58 +0100597
598 make -f Make_cyg.mak
599 LUA=/cygdrive/c/projects/lua53 DYNAMIC_LUA=yes LUA_VER=53
600
601
60210. Building with Perl support
603==============================
604
605Vim with Perl support can be built with either MSVC or MinGW (or Cygwin).
606You can use binaries from ActiveState (ActivePerl) or Strawberry Perl.
607
608 http://www.activestate.com/activeperl
609 http://strawberryperl.com/
610
611When building, you need to set the following variables:
612
613 PERL: Where perl is installed. E.g. C:\Perl, C:\Strawberry\perl
614 DYNAMIC_PERL: Whether dynamic linking is used. Usually, set to yes.
615 PERL_VER: Perl version. E.g. 522 for Perl 5.22.X.
616
617E.g. When using MSVC (as one line):
618
619 nmake -f Make_mvc.mak
620 PERL=C:\Perl DYNAMIC_PERL=yes PERL_VER=522
621
622Or when using MinGW (as one line):
623
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200624 mingw32-make -f Make_ming.mak
Bram Moolenaar30a89472016-01-10 14:35:58 +0100625 PERL=C:\Perl DYNAMIC_PERL=yes PERL_VER=522
626
627
62811. Building with Ruby support
629==============================
630
631Vim with Ruby support can be built with either MSVC or MinGW (or Cygwin).
632Ruby doesn't provide the official Windows binaries. The most widely used
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200633Windows binaries might be RubyInstaller. Currently Ruby 2.4 is recommended.
Bram Moolenaar30a89472016-01-10 14:35:58 +0100634
635 http://rubyinstaller.org/
636
637If you use MinGW you can easily build with RubyInstaller, but if you use MSVC
638you need some tricks described below.
639(Another binary distribution is ActiveScriptRuby:
640 http://www.artonx.org/data/asr/)
641
642When building, you need to set the following variables at least:
643
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200644 RUBY: Where ruby is installed. E.g. C:\Ruby24
Bram Moolenaar6384c5d2016-09-06 22:06:35 +0200645 DYNAMIC_RUBY: Whether dynamic linking is used. Usually, set to yes.
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200646 RUBY_VER: Ruby version. E.g. 24 for Ruby 2.4.X.
Bram Moolenaar6384c5d2016-09-06 22:06:35 +0200647 RUBY_API_VER_LONG: Ruby API version in a long format.
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200648 E.g. 2.4.0 for Ruby 2.4.X.
Bram Moolenaar30a89472016-01-10 14:35:58 +0100649
650Ruby version vs. Ruby API version:
651
652 Ruby ver. | Ruby API ver.
653 =========================
654 1.8.X | 1.8
655 1.9.[1-3] | 1.9.1
656 2.0.0 | 2.0.0
657 2.X.Y | 2.X.0
658
659(Ruby 1.9.0 is excluded from the table because it is an unstable version.)
660
661
662A) Using MSVC
663
664If you want to link with ruby, normally you must use the same compiler as
665which was used to build the ruby binary. RubyInstaller is built with MinGW,
666so normally you cannot use MSVC for building Vim if you want to link with
Bram Moolenaar02cfac82016-04-21 14:34:58 +0200667RubyInstaller. If you use a different compiler, there are mainly two problems:
Bram Moolenaar30a89472016-01-10 14:35:58 +0100668config.h and Ruby's DLL name. Here are the steps for working around them:
669
670 1) Download and Install RubyInstaller.
671 You can install RubyInstaller with the default options and directory.
672 E.g.:
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200673 C:\Ruby24 (32-bit) or C:\Ruby24-x64 (64-bit)
Bram Moolenaar30a89472016-01-10 14:35:58 +0100674
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200675 Ruby 2.4.X is used in this example.
Bram Moolenaar30a89472016-01-10 14:35:58 +0100676
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200677 2) Download Ruby 2.4.X's source code and generate config.h:
Bram Moolenaar30a89472016-01-10 14:35:58 +0100678
679 cd C:\projects
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200680 git clone https://github.com/ruby/ruby.git -b ruby_2_4
Bram Moolenaar30a89472016-01-10 14:35:58 +0100681 cd ruby
682 win32\configure.bat
683 nmake .config.h.time
684
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200685 Note that ruby_2_4 is the branch name for Ruby 2.4.X's source code.
Bram Moolenaar30a89472016-01-10 14:35:58 +0100686 There is no need to build whole Ruby, just config.h is needed.
687 If you use 32-bit MSVC10, the config.h is generated in the
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200688 .ext\include\i386-mswin32_140 directory.
Bram Moolenaar30a89472016-01-10 14:35:58 +0100689
690 3) Install the generated config.h.
691
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200692 xcopy /s .ext\include E:\Ruby24\include\ruby-2.4.0
Bram Moolenaar30a89472016-01-10 14:35:58 +0100693
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200694 Note that 2.4.0 is Ruby API version of Ruby 2.4.X.
695 You may need to close the console and reopen it to pick up the new $PATH.
Bram Moolenaar30a89472016-01-10 14:35:58 +0100696
697 4) Build Vim. Note that you need to adjust some variables (as one line):
698
699 nmake -f Make_mvc.mak
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200700 RUBY=C:\Ruby24 DYNAMIC_RUBY=yes RUBY_VER=24 RUBY_API_VER_LONG=2.4.0
Bram Moolenaar30a89472016-01-10 14:35:58 +0100701 RUBY_MSVCRT_NAME=msvcrt
Bram Moolenaar02cfac82016-04-21 14:34:58 +0200702 WINVER=0x501
Bram Moolenaar30a89472016-01-10 14:35:58 +0100703
Bram Moolenaar02cfac82016-04-21 14:34:58 +0200704 If you set WINVER explicitly, it must be set to >=0x500, when building
705 with Ruby 2.1 or later. (Default is 0x501.)
Bram Moolenaar30a89472016-01-10 14:35:58 +0100706 When using this trick, you also need to set RUBY_MSVCRT_NAME to msvcrt
707 which is used for the Ruby's DLL name.
708
709B) Using MinGW
710
711Using MinGW is easier than using MSVC when linking with RubyInstaller.
712After you install RubyInstaller, just type this (as one line):
713
714 mingw32-make -f Make_ming.mak
Bram Moolenaar6384c5d2016-09-06 22:06:35 +0200715 RUBY=C:/Ruby22 DYNAMIC_RUBY=yes RUBY_VER=22 RUBY_API_VER_LONG=2.2.0
Bram Moolenaar02cfac82016-04-21 14:34:58 +0200716 WINVER=0x501
Bram Moolenaar30a89472016-01-10 14:35:58 +0100717
Bram Moolenaar02cfac82016-04-21 14:34:58 +0200718If you set WINVER explicitly, it must be set to >=0x500, when building with
719Ruby 2.1 or later. (Default is 0x501.)
720
Bram Moolenaar30a89472016-01-10 14:35:58 +0100721
722
72312. Building with Tcl support
724=============================
725
726Vim with Tcl support can be built with either MSVC or MinGW (or Cygwin).
727You can use binaries from ActiveState (ActiveTcl).
728
729 http://www.activestate.com/activetcl
730
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200731For MSVC 2015 use version 8.6.6 or later.
Bram Moolenaar30a89472016-01-10 14:35:58 +0100732When building, you need to set the following variables:
733
734 TCL: Where tcl is installed. E.g. C:\Tcl86
735 DYNAMIC_TCL: Whether dynamic linking is used. Usually, set to yes.
736 TCL_VER: Tcl version in a short format. E.g. 86 for Tcl 8.6.X.
737 TCL_VER_LONG: Tcl version in a long format. E.g. 8.6 for Tcl 8.6.X.
738
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200739Sometimes the Tcl dll name changes. E.g. ActiveTcl 8.6.4 comes with tcl86.dll,
740but ActiveTcl 8.6.6 comes with tcl86t.dll. You can set the dll name by setting
741the TCL_DLL variable:
742 TCL_DLL=tcl86t.dll
743
Bram Moolenaar30a89472016-01-10 14:35:58 +0100744E.g. When using MSVC (as one line):
745
746 nmake -f Make_mvc.mak
747 TCL=C:\Tcl86 DYNAMIC_TCL=yes TCL_VER=86 TCL_VER_LONG=8.6
748
749Or when using MinGW (as one line):
750
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200751 mingw32-make -f Make_ming.mak
Bram Moolenaar30a89472016-01-10 14:35:58 +0100752 TCL=C:\Tcl86 DYNAMIC_TCL=yes TCL_VER=86 TCL_VER_LONG=8.6
753
754
Bram Moolenaar8f84c3a2017-07-22 16:14:44 +020075513. Building with Terminal support
756==================================
757
Bram Moolenaar8a773062017-07-24 22:29:21 +0200758Vim with Terminal support can be built with either MSVC, MinGW or Cygwin.
Bram Moolenaar2aeaf3f2017-07-23 17:11:15 +0200759This uses the included libvterm and winpty. No extra header files or
Bram Moolenaar8a773062017-07-24 22:29:21 +0200760libraries are needed for building. Just set TERMINAL to yes.
Bram Moolenaar2aeaf3f2017-07-23 17:11:15 +0200761
Bram Moolenaar8a773062017-07-24 22:29:21 +0200762E.g. When using MSVC:
Bram Moolenaar8f84c3a2017-07-22 16:14:44 +0200763
Bram Moolenaar8a773062017-07-24 22:29:21 +0200764 nmake -f Make_mvc.mak TERMINAL=yes
Bram Moolenaar8f84c3a2017-07-22 16:14:44 +0200765
Bram Moolenaar8a773062017-07-24 22:29:21 +0200766Or when using MinGW (as one line):
Bram Moolenaar8f84c3a2017-07-22 16:14:44 +0200767
Bram Moolenaar18cfa942017-10-08 17:58:44 +0200768 mingw32-make -f Make_ming.mak TERMINAL=yes
Bram Moolenaar8f84c3a2017-07-22 16:14:44 +0200769
770
77114. Windows 3.1x
Bram Moolenaar30a89472016-01-10 14:35:58 +0100772================
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000773
Bram Moolenaar6e722e22016-02-26 19:58:58 +0100774The Windows 3.1x support was removed in patch 7.4.1364.
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000775
776
Bram Moolenaar8f84c3a2017-07-22 16:14:44 +020077715. MS-DOS
Bram Moolenaar30a89472016-01-10 14:35:58 +0100778==========
Bram Moolenaar071d4272004-06-13 20:20:40 +0000779
Bram Moolenaar6e722e22016-02-26 19:58:58 +0100780The MS-DOS support was removed in patch 7.4.1399.
Bram Moolenaar734d9982011-07-15 13:52:04 +0200781
782
Bram Moolenaar8f84c3a2017-07-22 16:14:44 +020078316. Installing after building from sources
Bram Moolenaar734d9982011-07-15 13:52:04 +0200784==========================================
785
786[provided by Michael Soyka]
787
788After you've built the Vim binaries as described above, you're ready to
789install Vim on your system. However, if you've obtained the Vim sources
Bram Moolenaar30a89472016-01-10 14:35:58 +0100790using Git, Mercurial or by downloading them as a unix tar file, you must
Bram Moolenaarbbe917d2016-09-21 22:41:24 +0200791first create a "vim80" directory. If you instead downloaded the sources as
Bram Moolenaar734d9982011-07-15 13:52:04 +0200792zip files, you can skip this setup as the zip archives already have the
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100793correct directory structure.
Bram Moolenaar734d9982011-07-15 13:52:04 +0200794
Bram Moolenaarbbe917d2016-09-21 22:41:24 +0200795 A. Create a Vim "runtime" subdirectory named "vim80"
Bram Moolenaar734d9982011-07-15 13:52:04 +0200796 -----------------------------------------------------
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100797 If you obtained your Vim sources as zip files, you can skip this step.
Bram Moolenaar734d9982011-07-15 13:52:04 +0200798 Otherwise, continue reading.
799
800 Go to the directory that contains the Vim "src" and "runtime"
Bram Moolenaarbbe917d2016-09-21 22:41:24 +0200801 directories and create a new subdirectory named "vim80".
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100802
Bram Moolenaarbbe917d2016-09-21 22:41:24 +0200803 Copy the "runtime" files into "vim80":
804 copy runtime\* vim80
Bram Moolenaar734d9982011-07-15 13:52:04 +0200805
Bram Moolenaarbbe917d2016-09-21 22:41:24 +0200806 B. Copy the new binaries into the "vim80" directory
Bram Moolenaar734d9982011-07-15 13:52:04 +0200807 ----------------------------------------------------
808 Regardless of how you installed the Vim sources, you need to copy the
Bram Moolenaarbbe917d2016-09-21 22:41:24 +0200809 new binaries you created above into "vim80":
Bram Moolenaar734d9982011-07-15 13:52:04 +0200810
Bram Moolenaarbbe917d2016-09-21 22:41:24 +0200811 copy src\*.exe vim80
812 copy src\GvimExt\gvimext.dll vim80
813 copy src\xxd\xxd.exe vim80
Bram Moolenaar734d9982011-07-15 13:52:04 +0200814
Bram Moolenaarbbe917d2016-09-21 22:41:24 +0200815 C. Move the "vim80" directory into the Vim installation subdirectory
Bram Moolenaar734d9982011-07-15 13:52:04 +0200816 ---------------------------------------------------------------------
Bram Moolenaarbbe917d2016-09-21 22:41:24 +0200817 Move the "vim80" subdirectory into the subdirectory where you want Vim
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100818 to be installed. Typically, this subdirectory will be named "vim".
Bram Moolenaarbbe917d2016-09-21 22:41:24 +0200819 If you already have a "vim80" subdirectory in "vim", delete it first
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100820 by running its uninstal.exe program.
Bram Moolenaar734d9982011-07-15 13:52:04 +0200821
822 D. Install Vim
823 ---------------
Bram Moolenaarbbe917d2016-09-21 22:41:24 +0200824 "cd" to your Vim installation subdirectory "vim\vim80" and run the
Bram Moolenaar734d9982011-07-15 13:52:04 +0200825 "install.exe" program. It will ask you a number of questions about
826 how you would like to have your Vim setup. Among these are:
827 - You can tell it to write a "_vimrc" file with your preferences in the
828 parent directory.
829 - It can also install an "Edit with Vim" entry in the Windows Explorer
830 popup menu.
831 - You can have it create batch files, so that you can run Vim from the
832 console or in a shell. You can select one of the directories in your
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100833 PATH or add the directory to PATH using the Windows Control Panel.
Bram Moolenaar734d9982011-07-15 13:52:04 +0200834 - Create entries for Vim on the desktop and in the Start menu.
835
836Happy Vimming!