Skip to content

Commit 7767268

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents e92caf9 + 24db729 commit 7767268

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+14257
-5452
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ src/pathdef.c
3737
src/Obj*/pathdef.c
3838
gvimext.dll
3939
gvimext.lib
40+
runtime/doc/uganda.nsis.txt
4041

4142
# Borland C++
4243
bcc.cfg
@@ -74,6 +75,8 @@ src/testdir/test*.out
7475
src/testdir/test*.failed
7576
src/testdir/test.log
7677
src/testdir/dostmp/*
78+
src/testdir/messages
79+
src/testdir/viminfo
7780
src/memfile_test
7881

7982
# From MacVim

Filelist

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ SRC_UNIX = \
191191
src/gui_gtk_f.c \
192192
src/gui_gtk_f.h \
193193
src/gui_gtk_x11.c \
194-
src/gui_gtk_gresources.xml \
194+
src/gui_gtk_res.xml \
195195
src/gui_motif.c \
196196
src/gui_xmdlg.c \
197197
src/gui_xmebw.c \
@@ -315,6 +315,7 @@ SRC_DOS = \
315315
src/if_ole.cpp \
316316
src/if_ole.h \
317317
src/if_ole.idl \
318+
src/if_perl_msvc/stdbool.h \
318319
src/iid_ole.c \
319320
src/os_dos.h \
320321
src/os_msdos.c \
@@ -354,6 +355,7 @@ SRC_DOS = \
354355
src/xxd/Make_ming.mak \
355356
src/xxd/Make_mvc.mak \
356357
nsis/gvim.nsi \
358+
nsis/gvim_version.nsh \
357359
nsis/README.txt \
358360
uninstal.txt \
359361
src/VisVim/Commands.cpp \
@@ -444,15 +446,6 @@ SRC_VMS = \
444446
src/xxd/Make_vms.mms \
445447
vimtutor.com \
446448

447-
# source files for OS/2 (in the extra archive)
448-
SRC_OS2 = \
449-
src/Make_os2.mak \
450-
src/os_os2_cfg.h \
451-
src/testdir/Make_os2.mak \
452-
src/testdir/todos.vim \
453-
src/testdir/os2.vim \
454-
src/xxd/Make_os2.mak \
455-
456449
# source files for QNX (in the extra archive)
457450
SRC_QNX = \
458451
src/os_qnx.c \
@@ -469,7 +462,6 @@ SRC_EXTRA = \
469462
$(SRC_DOS) \
470463
$(SRC_DOS_BIN) \
471464
$(SRC_MAC) \
472-
$(SRC_OS2) \
473465
$(SRC_QNX) \
474466
$(SRC_VMS) \
475467
README_os390.txt \

Makefile

Lines changed: 60 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ all install uninstall tools config configure reconfig proto depend lint tags typ
6363
# amirt vim##rt.tgz runtime for Amiga
6464
# amibin vim##bin.tgz binary for Amiga
6565
#
66-
# os2bin vim##os2.zip binary for OS/2
67-
# (use RT from dosrt)
68-
#
6966
# farsi farsi##.zip Farsi fonts
7067
#
7168
# All output files are created in the "dist" directory. Existing files are
@@ -89,9 +86,9 @@ MINOR = 4
8986
#
9087
# - Update Vim version number. For a test version in: src/version.h, Contents,
9188
# MAJOR/MINOR above, VIMMAJOR and VIMMINOR in src/Makefile, README*.txt,
92-
# runtime/doc/*.txt and nsis/gvim.nsi. Other things in README_os2.txt. For a
93-
# minor/major version: src/GvimExt/GvimExt.reg, src/vim.def, src/vim16.def,
94-
# src/gvim.exe.mnf.
89+
# runtime/doc/*.txt and nsis/gvim.nsi.
90+
# For a minor/major version: src/GvimExt/GvimExt.reg, src/vim.def,
91+
# src/vim16.def, src/gvim.exe.mnf.
9592
# - Compile Vim with GTK, Perl, Python, Python3, TCL, Ruby, MZscheme, Lua (if
9693
# you can make it all work), Cscope and "huge" features. Exclude workshop
9794
# and SNiFF.
@@ -132,49 +129,58 @@ MINOR = 4
132129
# flag).
133130
# - "make amirt", "make amibin".
134131
#
135-
# PC:
132+
# MS-Windows:
136133
# - Run make on Unix to update the ".mo" files.
137-
# - "make dossrc" and "make dosrt". Unpack the archives on a PC.
138-
# Win32 console version:
139-
# - Set environment for Visual C++ 2008, e.g.: "msvc2008.bat" Or:
140-
# "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat".
134+
# - > make dossrc
135+
# > make dosrt
136+
# Unpack dist/vim##rt.zip and dist/vim##src.zip on an MS-Windows PC.
137+
# Win32 console version build:
138+
# - Set environment for Visual C++ 2008, e.g.:
139+
# > src/msvc2008.bat
140+
# Or:
141+
# > C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat
141142
# Or, when using the Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the
142143
# paths when necessary).
143144
# For Windows 98/ME the 2003 version is required, but then the executable
144145
# won't work on Windows 7 and 64 bit systems.
145-
# - "nmake -f Make_mvc.mak" (use the same path as for vcvars32.bat)
146+
# - > cd src
147+
# > nmake -f Make_mvc.mak
146148
# - Run the tests:
147-
# > rm testdir/*.out
149+
# > rm testdir/*.out testdir/*.res
148150
# > nmake -f Make_mvc.mak test
149151
# - check the output.
150152
# - Rename vim.exe to vimw32.exe, xxd/xxd.exe to xxdw32.exe.
151153
# - Rename vim.pdb to vimw32.pdb.
152154
# - Rename install.exe to installw32.exe and uninstal.exe to uninstalw32.exe.
153-
# Win32 GUI version:
154-
# - "nmake -f Make_mvc.mak GUI=yes"
155+
# Win32 GUI version build:
156+
# - > cd src
157+
# > nmake -f Make_mvc.mak GUI=yes
155158
# - Run the tests:
156-
# > cd testdir
157-
# > rm *.out
158-
# > nmake -f Make_dos.mak VIMPROG=..\gvim
159+
# > rm testdir/*.out testdir/*.res
160+
# > nmake -f Make_mvc.mak testgvim
159161
# - check the output.
160162
# - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
161163
# - Move gvim.pdb to here.
162-
# - Delete vimrun.exe, install.exe and uninstal.exe.
163164
# - Copy "GvimExt/gvimext.dll" to here.
165+
# - Delete vimrun.exe, install.exe and uninstal.exe.
164166
# Win32 GUI version with OLE, PERL, TCL, PYTHON and dynamic IME:
165-
# - Run src/bigvim.bat ("nmake -f Make_mvc.mak GUI=yes OLE=yes IME=yes ...)
167+
# - Install the interfaces you want, see src/INSTALLpc.txt
168+
# - Build:
169+
# > cd src
170+
# Adjust bigvim.bat to match the version of each interface you want.
171+
# > bigvim.bat
166172
# - Run the tests:
167-
# > cd testdir
168-
# > rm *.out
169-
# > nmake -f Make_dos.mak VIMPROG=..\gvim
173+
# > rm testdir/*.out testdir/*.res
174+
# > nmake -f Make_mvc.mak testgvim
170175
# - check the output.
171176
# - Rename "gvim.exe" to "gvim_ole.exe".
172177
# - Rename gvim.pdb to "gvim_ole.pdb".
173178
# - Delete install.exe and uninstal.exe.
174179
# Create the archives:
175180
# - Copy all the "*.exe" files to where this Makefile is.
176181
# - Copy all the "*.pdb" files to where this Makefile is.
177-
# - "make dosbin".
182+
# - in this directory:
183+
# > make dosbin
178184
# NSIS self installing exe:
179185
# - To get NSIS see http://nsis.sourceforge.net
180186
# - Make sure gvim_ole.exe, vimw32.exe, installw32.exe,
@@ -186,17 +192,23 @@ MINOR = 4
186192
# Note: VisVim needs to be build with MSVC 5, newer versions don't work.
187193
# gvimext64.dll can be obtained from http://code.google.com/p/vim-win3264/
188194
# It is part of vim72.zip as vim72/gvimext.dll.
189-
# - make sure there is a diff.exe two levels up
190-
# - go to ../nsis and do "makensis gvim.nsi" (takes a few minutes).
195+
# - Make sure there is a diff.exe two levels up (get it from a previous Vim
196+
# version).
197+
# - go to ../nsis and do:
198+
# > makensis gvim.nsi (takes a few minutes).
191199
# - Copy gvim##.exe to the dist directory.
192200
#
193201
# 64 bit builds (these are not in the normal distribution, the 32 bit build
194202
# works just fine on 64 bit systems).
195203
# Like the console and GUI version, but first run vcvars64.bat or
196204
# "..\VC\vcvarsall.bat x86_amd64".
197-
# - "nmake -f Make_mvc.mak"
198-
# - "nmake -f Make_mvc.mak GUI=yes"
199-
# Or run src/bigvim64.bat for an OLE version.
205+
# - Build the console version:
206+
# > nmake -f Make_mvc.mak
207+
# - Build the GUI version:
208+
# > nmake -f Make_mvc.mak GUI=yes
209+
# - Build the OLE version with interfaces:
210+
# > bigvim64.bat
211+
#
200212
#
201213
# OBSOLETE systems: You can build this if you have an appropriate system.
202214
#
@@ -217,7 +229,7 @@ MINOR = 4
217229
# - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and
218230
# "uninstald32.exe".
219231
#
220-
# Win32s GUI version: (requires very old compiler)
232+
# Win32s GUI version: (requires a very old compiler)
221233
# - Set environment for Visual C++ 4.1 (requires a new console window):
222234
# "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin)
223235
# - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1)
@@ -270,7 +282,6 @@ COMMENT_GVIM = comment/$(VERSION)-bin-gvim
270282
COMMENT_OLE = comment/$(VERSION)-bin-ole
271283
COMMENT_W32S = comment/$(VERSION)-bin-w32s
272284
COMMENT_SRC = comment/$(VERSION)-src
273-
COMMENT_OS2 = comment/$(VERSION)-bin-os2
274285
COMMENT_HTML = comment/$(VERSION)-html
275286
COMMENT_FARSI = comment/$(VERSION)-farsi
276287

@@ -298,9 +309,6 @@ dist/$(COMMENT_W32S): dist/comment
298309
dist/$(COMMENT_SRC): dist/comment
299310
echo "Vim - Vi IMproved - v$(VDOT) sources for MS-DOS and MS-Windows" > dist/$(COMMENT_SRC)
300311

301-
dist/$(COMMENT_OS2): dist/comment
302-
echo "Vim - Vi IMproved - v$(VDOT) binaries + runtime files for OS/2" > dist/$(COMMENT_OS2)
303-
304312
dist/$(COMMENT_HTML): dist/comment
305313
echo "Vim - Vi IMproved - v$(VDOT) documentation in HTML" > dist/$(COMMENT_HTML)
306314

@@ -409,7 +417,9 @@ no_title.vim: Makefile
409417
echo "set notitle noicon nocp nomodeline viminfo=" >no_title.vim
410418

411419
# MS-DOS sources
412-
dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt
420+
dossrc: dist no_title.vim dist/$(COMMENT_SRC) \
421+
runtime/doc/uganda.nsis.txt \
422+
nsis/gvim_version.nsh
413423
-rm -rf dist/vim$(VERSION)src.zip
414424
-rm -rf dist/vim
415425
mkdir dist/vim
@@ -420,10 +430,12 @@ dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt
420430
$(SRC_AMI_DOS) \
421431
$(SRC_DOS_UNIX) \
422432
runtime/doc/uganda.nsis.txt \
433+
nsis/gvim_version.nsh \
423434
| (cd dist/vim/$(VIMRTDIR); tar xf -)
424435
mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR)
425436
rmdir dist/vim/$(VIMRTDIR)/runtime
426-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
437+
# This file needs to be in dos fileformat for NSIS.
438+
$(VIM) -e -X -u no_title.vim -c ":set tx|wq" dist/vim/$(VIMRTDIR)/doc/uganda.nsis.txt
427439
tar cf - \
428440
$(SRC_DOS_BIN) \
429441
| (cd dist/vim/$(VIMRTDIR); tar xf -)
@@ -432,12 +444,21 @@ dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt
432444
runtime/doc/uganda.nsis.txt: runtime/doc/uganda.txt
433445
cd runtime/doc && $(MAKE) uganda.nsis.txt
434446

435-
dosrt: dist dist/$(COMMENT_RT) dosrt_unix2dos
447+
nsis/gvim_version.nsh: Makefile
448+
echo "# Generated from Makefile: define the version numbers" > $@
449+
echo "!ifndef __GVIM_VER__NSH__" >> $@
450+
echo "!define __GVIM_VER__NSH__" >> $@
451+
echo "!define VER_MAJOR $(MAJOR)" >> $@
452+
echo "!define VER_MINOR $(MINOR)" >> $@
453+
echo "!endif" >> $@
454+
455+
dosrt: dist dist/$(COMMENT_RT) dosrt_files
436456
-rm -rf dist/vim$(VERSION)rt.zip
437457
cd dist && zip -9 -rD -z vim$(VERSION)rt.zip vim <$(COMMENT_RT)
438458

439459
# Split in two parts to avoid an "argument list too long" error.
440-
dosrt_unix2dos: dist prepare no_title.vim
460+
# We no longer convert the files from unix to dos fileformat.
461+
dosrt_files: dist prepare no_title.vim
441462
-rm -rf dist/vim
442463
mkdir dist/vim
443464
mkdir dist/vim/$(VIMRTDIR)
@@ -453,7 +474,6 @@ dosrt_unix2dos: dist prepare no_title.vim
453474
$(RT_AMI_DOS) \
454475
$(LANG_GEN) \
455476
| (cd dist/vim/$(VIMRTDIR); tar xf -)
456-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
457477
tar cf - \
458478
$(RT_UNIX_DOS_BIN) \
459479
$(RT_ALL_BIN) \
@@ -476,9 +496,8 @@ dosrt_unix2dos: dist prepare no_title.vim
476496
cp libintl.dll dist/vim/$(VIMRTDIR)/
477497

478498

479-
# Convert runtime files from Unix fileformat to dos fileformat.
480499
# Used before uploading. Don't delete the AAPDIR/sign files!
481-
runtime_unix2dos: dosrt_unix2dos
500+
runtime_unix2dos: dosrt_files
482501
-rm -rf `find runtime/dos -type f -print | sed -e /AAPDIR/d`
483502
cd dist/vim/$(VIMRTDIR); tar cf - * \
484503
| (cd ../../../runtime/dos; tar xf -)
@@ -494,7 +513,6 @@ dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
494513
tar cf - \
495514
$(BIN_DOS) \
496515
| (cd dist/vim/$(VIMRTDIR); tar xf -)
497-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
498516
cp gvim.exe dist/vim/$(VIMRTDIR)/gvim.exe
499517
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
500518
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
@@ -513,7 +531,6 @@ dosbin_w32: dist no_title.vim dist/$(COMMENT_W32)
513531
tar cf - \
514532
$(BIN_DOS) \
515533
| (cd dist/vim/$(VIMRTDIR); tar xf -)
516-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
517534
cp vimw32.exe dist/vim/$(VIMRTDIR)/vim.exe
518535
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
519536
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
@@ -530,7 +547,6 @@ dosbin_d32: dist no_title.vim dist/$(COMMENT_D32)
530547
tar cf - \
531548
$(BIN_DOS) \
532549
| (cd dist/vim/$(VIMRTDIR); tar xf -)
533-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
534550
cp vimd32.exe dist/vim/$(VIMRTDIR)/vim.exe
535551
cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe
536552
cp installd32.exe dist/vim/$(VIMRTDIR)/install.exe
@@ -547,7 +563,6 @@ dosbin_d16: dist no_title.vim dist/$(COMMENT_D16)
547563
tar cf - \
548564
$(BIN_DOS) \
549565
| (cd dist/vim/$(VIMRTDIR); tar xf -)
550-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
551566
cp vimd16.exe dist/vim/$(VIMRTDIR)/vim.exe
552567
cp xxdd16.exe dist/vim/$(VIMRTDIR)/xxd.exe
553568
cp installd16.exe dist/vim/$(VIMRTDIR)/install.exe
@@ -563,7 +578,6 @@ dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE)
563578
tar cf - \
564579
$(BIN_DOS) \
565580
| (cd dist/vim/$(VIMRTDIR); tar xf -)
566-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
567581
cp gvim_ole.exe dist/vim/$(VIMRTDIR)/gvim.exe
568582
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
569583
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
@@ -585,29 +599,13 @@ dosbin_s: dist no_title.vim dist/$(COMMENT_W32S)
585599
tar cf - \
586600
$(BIN_DOS) \
587601
| (cd dist/vim/$(VIMRTDIR); tar xf -)
588-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
589602
cp gvim_w32s.exe dist/vim/$(VIMRTDIR)/gvim.exe
590603
cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe
591604
cp README_w32s.txt dist/vim/$(VIMRTDIR)
592605
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
593606
cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
594607
cd dist && zip -9 -rD -z gvim$(VERSION)_s.zip vim <$(COMMENT_W32S)
595608

596-
os2bin: dist no_title.vim dist/$(COMMENT_OS2)
597-
-rm -rf dist/vim$(VERSION)os2.zip
598-
-rm -rf dist/vim
599-
mkdir dist/vim
600-
mkdir dist/vim/$(VIMRTDIR)
601-
tar cf - \
602-
$(BIN_OS2) \
603-
| (cd dist/vim/$(VIMRTDIR); tar xf -)
604-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
605-
cp vimos2.exe dist/vim/$(VIMRTDIR)/vim.exe
606-
cp xxdos2.exe dist/vim/$(VIMRTDIR)/xxd.exe
607-
cp teeos2.exe dist/vim/$(VIMRTDIR)/tee.exe
608-
cp emx.dll emxlibcs.dll dist/vim/$(VIMRTDIR)
609-
cd dist && zip -9 -rD -z vim$(VERSION)os2.zip vim <$(COMMENT_OS2)
610-
611609
html: dist dist/$(COMMENT_HTML)
612610
-rm -rf dist/vim$(VERSION)html.zip
613611
cd runtime/doc && zip -9 -z ../../dist/vim$(VERSION)html.zip *.html <../../dist/$(COMMENT_HTML)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ All commands are given with normal keyboard characters, so those who can type
1717
with ten fingers can work very fast. Additionally, function keys can be
1818
defined by the user, and the mouse can be used.
1919

20-
Vim runs under Amiga DOS, MS-DOS, MS-Windows (95, 98, Me, NT, 2000, XP, Vista,
21-
7), Atari MiNT, Macintosh, BeOS, VMS, RISC OS, OS/2 and almost all flavours of
22-
UNIX. Porting to other systems should not be very difficult.
20+
Vim runs under MS-DOS, MS-Windows (NT, 2000, XP, Vista, 7, 8, 10), Macintosh,
21+
VMS and almost all flavours of UNIX. Porting to other systems should not be
22+
very difficult. Older versions of Vim run on MS-Windows 95/98/Me, Amiga DOS,
23+
Atari MiNT, BeOS, RISC OS and OS/2. These are no longer maintained.
2324

2425

2526
## Distribution ##
@@ -89,7 +90,6 @@ See one of these files for system-specific instructions:
8990
README_ami.txt Amiga
9091
README_unix.txt Unix
9192
README_dos.txt MS-DOS and MS-Windows
92-
README_os2.txt OS/2
9393
README_mac.txt Macintosh
9494
README_vms.txt VMS
9595

0 commit comments

Comments
 (0)