Skip to content

Commit 1645f95

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents ef743ad + 7f7bd29 commit 1645f95

34 files changed

Lines changed: 753 additions & 207 deletions

Filelist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ SRC_ALL = \
9393
src/vim.h \
9494
src/winclip.c \
9595
src/window.c \
96+
src/tee/tee.c \
9697
src/xxd/xxd.c \
9798
src/main.aap \
9899
src/testdir/main.aap \
@@ -263,6 +264,7 @@ SRC_UNIX = \
263264
src/workshop.h \
264265
src/wsdebug.c \
265266
src/wsdebug.h \
267+
src/tee/Makefile \
266268
src/xxd/Makefile \
267269

268270
# source files for both DOS and Unix
@@ -314,6 +316,7 @@ SRC_DOS = \
314316
src/Make_dvc.mak \
315317
src/Make_ming.mak \
316318
src/Make_mvc.mak \
319+
tools/rename.bat \
317320
src/bigvim.bat \
318321
src/bigvim64.bat \
319322
src/msvcsetup.bat \
@@ -357,6 +360,7 @@ SRC_DOS = \
357360
src/vimrun.c \
358361
src/xpm_w32.c \
359362
src/xpm_w32.h \
363+
src/tee/Make_mvc.mak \
360364
src/xxd/Make_bc5.mak \
361365
src/xxd/Make_ming.mak \
362366
src/xxd/Make_mvc.mak \

Makefile

Lines changed: 19 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,9 @@ all install uninstall tools config configure reconfig proto depend lint tags typ
5151
#
5252
# dossrc vim##src.zip sources for MS-DOS
5353
# dosrt vim##rt.zip runtime for MS-DOS
54-
# dosbin vim##d16.zip binary for MS-DOS 16 bits
55-
# vim##d32.zip binary for MS-DOS 32 bits
56-
# vim##w32.zip binary for Win32
54+
# dosbin vim##w32.zip binary for Win32
5755
# gvim##.zip binary for GUI Win32
5856
# gvim##ole.zip OLE exe for Win32 GUI
59-
# gvim##_s.zip exe for Win32s GUI
6057
#
6158
# OBSOLETE
6259
# amisrc vim##src.tgz sources for Amiga
@@ -73,15 +70,6 @@ all install uninstall tools config configure reconfig proto depend lint tags typ
7370
MAJOR = 7
7471
MINOR = 4
7572

76-
# Uncomment this line if the Win32s version is to be included.
77-
# DOSBIN_S = dosbin_s
78-
79-
# Uncomment this line if the 16 bit DOS version is to be included.
80-
# DOSBIN_D16 = dosbin_d16
81-
82-
# Uncomment this line if the 32 bit DOS version is to be included.
83-
# DOSBIN_D32 = dosbin_d32
84-
8573
# CHECKLIST for creating a new version:
8674
#
8775
# - Update Vim version number. For a test version in: src/version.h, Contents,
@@ -149,17 +137,21 @@ MINOR = 4
149137
# - > cd src
150138
# > nmake -f Make_mvc.mak
151139
# - Run the tests:
152-
# > rm testdir/*.out testdir/*.res
140+
# > nmake -f Make_mvc.mak testclean
153141
# > nmake -f Make_mvc.mak test
154142
# - check the output.
155-
# - Rename vim.exe to vimw32.exe, xxd/xxd.exe to xxdw32.exe.
156-
# - Rename vim.pdb to vimw32.pdb.
157-
# - Rename install.exe to installw32.exe and uninstal.exe to uninstalw32.exe.
143+
# - Rename (using tools/rename.bat):
144+
# vim.exe to vimw32.exe
145+
# tee/tee.exe to teew32.exe
146+
# xxd/xxd.exe to xxdw32.exe
147+
# vim.pdb to vimw32.pdb
148+
# install.exe to installw32.exe
149+
# uninstal.exe to uninstalw32.exe
158150
# Win32 GUI version build:
159151
# - > cd src
160152
# > nmake -f Make_mvc.mak GUI=yes
161153
# - Run the tests:
162-
# > rm testdir/*.out testdir/*.res
154+
# > nmake -f Make_mvc.mak testclean
163155
# > nmake -f Make_mvc.mak testgvim
164156
# - check the output.
165157
# - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
@@ -173,7 +165,7 @@ MINOR = 4
173165
# Adjust bigvim.bat to match the version of each interface you want.
174166
# > bigvim.bat
175167
# - Run the tests:
176-
# > rm testdir/*.out testdir/*.res
168+
# > nmake -f Make_mvc.mak testclean
177169
# > nmake -f Make_mvc.mak testgvim
178170
# - check the output.
179171
# - Rename "gvim.exe" to "gvim_ole.exe".
@@ -187,7 +179,8 @@ MINOR = 4
187179
# NSIS self installing exe:
188180
# - To get NSIS see http://nsis.sourceforge.net
189181
# - Make sure gvim_ole.exe, vimw32.exe, installw32.exe,
190-
# uninstalw32.exe and xxdw32.exe have been build as mentioned above.
182+
# uninstalw32.exe, teew32.exe and xxdw32.exe have been build as mentioned
183+
# above.
191184
# - copy these files (get them from a binary archive or build them):
192185
# gvimext.dll in src/GvimExt
193186
# gvimext64.dll in src/GvimExt
@@ -221,15 +214,7 @@ MINOR = 4
221214
# 32 bit DOS version: Support was removed in 7.4.1399. When syncing to before
222215
# that it probably won't build.
223216
#
224-
# Win32s GUI version: (requires a very old compiler)
225-
# - Set environment for Visual C++ 4.1 (requires a new console window):
226-
# "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin)
227-
# - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1)
228-
# - "nmake -f Make_mvc.mak GUI=yes INTL=no" (use the path for VC 4.1)
229-
# - Rename "gvim.exe" to "gvim_w32s.exe".
230-
# - Rename "install.exe" to "installw32.exe"
231-
# - Rename "uninstal.exe" to "uninstalw32.exe"
232-
# - The produced uninstalw32.exe and vimrun.exe are used.
217+
# Win32s GUI version: Support was removed in patch 7.4.1364.
233218
#
234219
# OS/2 support was removed in patch 7.4.1008. If you want to give it a try
235220
# sync to before that and check the old version of this Makefile for
@@ -268,25 +253,16 @@ dist/comment:
268253
mkdir dist/comment
269254

270255
COMMENT_RT = comment/$(VERSION)-rt
271-
COMMENT_D16 = comment/$(VERSION)-bin-d16
272-
COMMENT_D32 = comment/$(VERSION)-bin-d32
273256
COMMENT_W32 = comment/$(VERSION)-bin-w32
274257
COMMENT_GVIM = comment/$(VERSION)-bin-gvim
275258
COMMENT_OLE = comment/$(VERSION)-bin-ole
276-
COMMENT_W32S = comment/$(VERSION)-bin-w32s
277259
COMMENT_SRC = comment/$(VERSION)-src
278260
COMMENT_HTML = comment/$(VERSION)-html
279261
COMMENT_FARSI = comment/$(VERSION)-farsi
280262

281263
dist/$(COMMENT_RT): dist/comment
282264
echo "Vim - Vi IMproved - v$(VDOT) runtime files for MS-DOS and MS-Windows" > dist/$(COMMENT_RT)
283265

284-
dist/$(COMMENT_D16): dist/comment
285-
echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-DOS 16 bit real mode" > dist/$(COMMENT_D16)
286-
287-
dist/$(COMMENT_D32): dist/comment
288-
echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-DOS 32 bit protected mode" > dist/$(COMMENT_D32)
289-
290266
dist/$(COMMENT_W32): dist/comment
291267
echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-Windows NT/95" > dist/$(COMMENT_W32)
292268

@@ -296,9 +272,6 @@ dist/$(COMMENT_GVIM): dist/comment
296272
dist/$(COMMENT_OLE): dist/comment
297273
echo "Vim - Vi IMproved - v$(VDOT) MS-Windows GUI binaries with OLE support" > dist/$(COMMENT_OLE)
298274

299-
dist/$(COMMENT_W32S): dist/comment
300-
echo "Vim - Vi IMproved - v$(VDOT) GUI binaries for MS-Windows 3.1/3.11" > dist/$(COMMENT_W32S)
301-
302275
dist/$(COMMENT_SRC): dist/comment
303276
echo "Vim - Vi IMproved - v$(VDOT) sources for MS-DOS and MS-Windows" > dist/$(COMMENT_SRC)
304277

@@ -501,7 +474,8 @@ runtime_unix2dos: dosrt_files
501474
cd dist/vim/$(VIMRTDIR); tar cf - * \
502475
| (cd ../../../runtime/dos; tar xf -)
503476

504-
dosbin: prepare dosbin_gvim dosbin_w32 $(DOSBIN_D32) dosbin_ole $(DOSBIN_S) $(DOSBIN_D16)
477+
dosbin: prepare dosbin_gvim dosbin_w32 dosbin_ole $(DOSBIN_S)
478+
-rm $(IN_README_DIR)
505479

506480
# make Win32 gvim
507481
dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
@@ -512,8 +486,8 @@ dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
512486
tar cf - \
513487
$(BIN_DOS) \
514488
| (cd dist/vim/$(VIMRTDIR); tar xf -)
515-
-rm $(IN_README_DIR)
516489
cp gvim.exe dist/vim/$(VIMRTDIR)/gvim.exe
490+
cp teew32.exe dist/vim/$(VIMRTDIR)/tee.exe
517491
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
518492
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
519493
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
@@ -532,43 +506,13 @@ dosbin_w32: dist no_title.vim dist/$(COMMENT_W32)
532506
$(BIN_DOS) \
533507
| (cd dist/vim/$(VIMRTDIR); tar xf -)
534508
cp vimw32.exe dist/vim/$(VIMRTDIR)/vim.exe
509+
cp teew32.exe dist/vim/$(VIMRTDIR)/tee.exe
535510
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
536511
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
537512
cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
538513
cd dist && zip -9 -rD -z vim$(VERSION)w32.zip vim <$(COMMENT_W32)
539514
cp vimw32.pdb dist/vim$(VERSION)w32.pdb
540515

541-
# make 32bit DOS
542-
dosbin_d32: dist no_title.vim dist/$(COMMENT_D32)
543-
-rm -rf dist/vim$(VERSION)d32.zip
544-
-rm -rf dist/vim
545-
mkdir dist/vim
546-
mkdir dist/vim/$(VIMRTDIR)
547-
tar cf - \
548-
$(BIN_DOS) \
549-
| (cd dist/vim/$(VIMRTDIR); tar xf -)
550-
cp vimd32.exe dist/vim/$(VIMRTDIR)/vim.exe
551-
cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe
552-
cp installd32.exe dist/vim/$(VIMRTDIR)/install.exe
553-
cp uninstald32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
554-
cp csdpmi4b.zip dist/vim/$(VIMRTDIR)
555-
cd dist && zip -9 -rD -z vim$(VERSION)d32.zip vim <$(COMMENT_D32)
556-
557-
# make 16bit DOS
558-
dosbin_d16: dist no_title.vim dist/$(COMMENT_D16)
559-
-rm -rf dist/vim$(VERSION)d16.zip
560-
-rm -rf dist/vim
561-
mkdir dist/vim
562-
mkdir dist/vim/$(VIMRTDIR)
563-
tar cf - \
564-
$(BIN_DOS) \
565-
| (cd dist/vim/$(VIMRTDIR); tar xf -)
566-
cp vimd16.exe dist/vim/$(VIMRTDIR)/vim.exe
567-
cp xxdd16.exe dist/vim/$(VIMRTDIR)/xxd.exe
568-
cp installd16.exe dist/vim/$(VIMRTDIR)/install.exe
569-
cp uninstald16.exe dist/vim/$(VIMRTDIR)/uninstal.exe
570-
cd dist && zip -9 -rD -z vim$(VERSION)d16.zip vim <$(COMMENT_D16)
571-
572516
# make Win32 gvim with OLE
573517
dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE)
574518
-rm -rf dist/gvim$(VERSION)ole.zip
@@ -579,6 +523,7 @@ dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE)
579523
$(BIN_DOS) \
580524
| (cd dist/vim/$(VIMRTDIR); tar xf -)
581525
cp gvim_ole.exe dist/vim/$(VIMRTDIR)/gvim.exe
526+
cp teew32.exe dist/vim/$(VIMRTDIR)/tee.exe
582527
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
583528
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
584529
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
@@ -590,22 +535,6 @@ dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE)
590535
cd dist && zip -9 -rD -z gvim$(VERSION)ole.zip vim <$(COMMENT_OLE)
591536
cp gvim_ole.pdb dist/gvim$(VERSION)ole.pdb
592537

593-
# make Win32s gvim
594-
dosbin_s: dist no_title.vim dist/$(COMMENT_W32S)
595-
-rm -rf dist/gvim$(VERSION)_s.zip
596-
-rm -rf dist/vim
597-
mkdir dist/vim
598-
mkdir dist/vim/$(VIMRTDIR)
599-
tar cf - \
600-
$(BIN_DOS) \
601-
| (cd dist/vim/$(VIMRTDIR); tar xf -)
602-
cp gvim_w32s.exe dist/vim/$(VIMRTDIR)/gvim.exe
603-
cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe
604-
cp README_w32s.txt dist/vim/$(VIMRTDIR)
605-
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
606-
cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
607-
cd dist && zip -9 -rD -z gvim$(VERSION)_s.zip vim <$(COMMENT_W32S)
608-
609538
html: dist dist/$(COMMENT_HTML)
610539
-rm -rf dist/vim$(VERSION)html.zip
611540
cd runtime/doc && zip -9 -z ../../dist/vim$(VERSION)html.zip *.html <../../dist/$(COMMENT_HTML)

nsis/gvim.nsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ Section "Vim executables and runtime files"
188188
File /oname=install.exe ${VIMSRC}\installw32.exe
189189
File /oname=uninstal.exe ${VIMSRC}\uninstalw32.exe
190190
File ${VIMSRC}\vimrun.exe
191+
File /oname=tee.exe ${VIMSRC}\teew32.exe
191192
File /oname=xxd.exe ${VIMSRC}\xxdw32.exe
192193
File ${VIMTOOLS}\diff.exe
193194
File ${VIMRT}\vimtutor.bat

runtime/defaults.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" The default vimrc file.
22
"
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last change: 2016 Aug 21
4+
" Last change: 2016 Aug 28
55
"
66
" This is loaded if no vimrc file was found.
77
" Except when Vim is run with "-u NONE" or "-C".
@@ -31,6 +31,9 @@ set ttimeoutlen=100 " wait up to 100ms after Esc for special key
3131
" Show @@@ in the last line if it is truncated.
3232
set display=truncate
3333

34+
" Show a few lines of context around the cursor.
35+
set scrolloff=5
36+
3437
" Do incremental searching when it's possible to timeout.
3538
if has('reltime')
3639
set incsearch

runtime/doc/eval.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 7.4. Last change: 2016 Aug 27
1+
*eval.txt* For Vim version 7.4. Last change: 2016 Aug 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3272,6 +3272,8 @@ delete({fname} [, {flags}]) *delete()*
32723272

32733273
When {flags} is "rf": Deletes the directory by the name
32743274
{fname} and everything in it, recursively. BE CAREFUL!
3275+
Note: on MS-Windows it is not possible to delete a directory
3276+
that is being used.
32753277

32763278
A symbolic link itself is deleted, not what it points to.
32773279

@@ -6344,7 +6346,7 @@ round({expr}) *round()*
63446346
{only available when compiled with the |+float| feature}
63456347

63466348
screenattr(row, col) *screenattr()*
6347-
Like screenchar(), but return the attribute. This is a rather
6349+
Like |screenchar()|, but return the attribute. This is a rather
63486350
arbitrary number that can only be used to compare to the
63496351
attribute at other positions.
63506352

runtime/doc/options.txt

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 7.4. Last change: 2016 Aug 26
1+
*options.txt* For Vim version 7.4. Last change: 2016 Aug 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2869,10 +2869,17 @@ A jump table for the options with a short description can be found at |Q_op|.
28692869
global
28702870
{not in Vi}
28712871
Enables the reading of .vimrc, .exrc and .gvimrc in the current
2872-
directory. If you switch this option on you should also consider
2873-
setting the 'secure' option (see |initialization|). Using a local
2874-
.exrc, .vimrc or .gvimrc is a potential security leak, use with care!
2875-
also see |.vimrc| and |gui-init|.
2872+
directory.
2873+
2874+
Setting this option is a potential security leak. E.g., consider
2875+
unpacking a package or fetching files from github, a .vimrc in there
2876+
might be a trojan horse. BETTER NOT SET THIS OPTION!
2877+
Instead, define an autocommand in your .vimrc to set options for a
2878+
matching directory.
2879+
2880+
If you do switch this option on you should also consider setting the
2881+
'secure' option (see |initialization|).
2882+
Also see |.vimrc| and |gui-init|.
28762883
This option cannot be set from a |modeline| or in the |sandbox|, for
28772884
security reasons.
28782885

runtime/doc/starting.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*starting.txt* For Vim version 7.4. Last change: 2016 Aug 26
1+
*starting.txt* For Vim version 7.4. Last change: 2016 Aug 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -839,7 +839,7 @@ accordingly. Vim proceeds in this order:
839839
options values and has "syntax on" and "filetype on" commands,
840840
which is what most new users will want. See |defaults.vim|.
841841

842-
d. If the 'exrc' option is on (which is not the default), the current
842+
d. If the 'exrc' option is on (which is NOT the default), the current
843843
directory is searched for three files. The first that exists is used,
844844
the others are ignored.
845845
- The file ".vimrc" (for Unix, Amiga and OS/2) (*)

0 commit comments

Comments
 (0)