Skip to content

Commit a217a8f

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents a3467ed + 98af99f commit a217a8f

42 files changed

Lines changed: 1190 additions & 673 deletions

Some content is hidden

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

Filelist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,10 +675,8 @@ SRC_EXTRA = \
675675
$(SRC_QNX) \
676676
$(SRC_VMS) \
677677
README_os390.txt \
678-
src/Make_mint.mak \
679678
src/infplist.xml \
680679
src/link.390 \
681-
src/os_mint.h \
682680
src/os_vms_fix.com \
683681
src/toolbar.phi \
684682

READMEdir/README_extra.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ src/os_mac* Shared files for the different Mac ports.
2121

2222
src/MacVim/* Files for the MacVim port.
2323

24-
src/os_mint.8 Files for the Atari Mint port.
25-
2624
src/os_vms* Files for the VMS port.
2725

2826
src/os_w32*

nsis/gvim.nsi

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,15 @@ SectionEnd
687687
${EndIf}
688688
!macroend
689689

690+
!macro LoadDefaultVimrc out_var reg_value default_value
691+
ClearErrors
692+
ReadRegStr ${out_var} HKLM "${UNINST_REG_KEY_VIM}" ${reg_value}
693+
${If} ${Errors}
694+
${OrIf} ${out_var} == ""
695+
StrCpy ${out_var} ${default_value}
696+
${EndIf}
697+
!macroend
698+
690699
Function .onInit
691700
!ifdef HAVE_MULTI_LANG
692701
# Select a language (or read from the registry).
@@ -718,10 +727,10 @@ Function .onInit
718727
!endif
719728
${EndIf}
720729

721-
# Load the selections from the registry (if any).
722730
${If} ${RunningX64}
723731
SetRegView 64
724732
${EndIf}
733+
# Load the selections from the registry (if any).
725734
!insertmacro LoadSectionSelection ${id_section_console} "select_console"
726735
!insertmacro LoadSectionSelection ${id_section_batch} "select_batch"
727736
!insertmacro LoadSectionSelection ${id_section_desktop} "select_desktop"
@@ -736,6 +745,10 @@ Function .onInit
736745
!ifdef HAVE_NLS
737746
!insertmacro LoadSectionSelection ${id_section_nls} "select_nls"
738747
!endif
748+
# Load the default _vimrc settings from the registry (if any).
749+
!insertmacro LoadDefaultVimrc $vim_compat_stat "vim_compat" "all"
750+
!insertmacro LoadDefaultVimrc $vim_keymap_stat "vim_keyremap" "default"
751+
!insertmacro LoadDefaultVimrc $vim_mouse_stat "vim_mouse" "default"
739752
${If} ${RunningX64}
740753
SetRegView lastused
741754
${EndIf}
@@ -799,17 +812,11 @@ Function SetCustom
799812
${NSD_CB_AddString} $vim_nsd_compat $(str_msg_compat_defaults)
800813
${NSD_CB_AddString} $vim_nsd_compat $(str_msg_compat_all)
801814

802-
# Default selection
803-
${If} $vim_compat_stat == ""
804-
ReadRegStr $3 HKLM "${UNINST_REG_KEY_VIM}" "vim_compat"
805-
${Else}
806-
StrCpy $3 $vim_compat_stat
807-
${EndIf}
808-
${If} $3 == "defaults"
815+
${If} $vim_compat_stat == "defaults"
809816
StrCpy $4 2
810-
${ElseIf} $3 == "vim"
817+
${ElseIf} $vim_compat_stat == "vim"
811818
StrCpy $4 1
812-
${ElseIf} $3 == "vi"
819+
${ElseIf} $vim_compat_stat == "vi"
813820
StrCpy $4 0
814821
${Else} # default
815822
StrCpy $4 3
@@ -828,13 +835,7 @@ Function SetCustom
828835
${NSD_CB_AddString} $vim_nsd_keymap $(str_msg_keymap_default)
829836
${NSD_CB_AddString} $vim_nsd_keymap $(str_msg_keymap_windows)
830837

831-
# Default selection
832-
${If} $vim_keymap_stat == ""
833-
ReadRegStr $3 HKLM "${UNINST_REG_KEY_VIM}" "vim_keyremap"
834-
${Else}
835-
StrCpy $3 $vim_keymap_stat
836-
${EndIf}
837-
${If} $3 == "windows"
838+
${If} $vim_keymap_stat == "windows"
838839
StrCpy $4 1
839840
${Else} # default
840841
StrCpy $4 0
@@ -854,15 +855,9 @@ Function SetCustom
854855
${NSD_CB_AddString} $vim_nsd_mouse $(str_msg_mouse_windows)
855856
${NSD_CB_AddString} $vim_nsd_mouse $(str_msg_mouse_unix)
856857

857-
# Default selection
858-
${If} $vim_mouse_stat == ""
859-
ReadRegStr $3 HKLM "${UNINST_REG_KEY_VIM}" "vim_mouse"
860-
${Else}
861-
StrCpy $3 $vim_mouse_stat
862-
${EndIf}
863-
${If} $3 == "xterm"
858+
${If} $vim_mouse_stat == "xterm"
864859
StrCpy $4 2
865-
${ElseIf} $3 == "windows"
860+
${ElseIf} $vim_mouse_stat == "windows"
866861
StrCpy $4 1
867862
${Else} # default
868863
StrCpy $4 0

runtime/doc/os_mint.txt

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,15 @@
1-
*os_mint.txt* For Vim version 8.2. Last change: 2005 Mar 29
1+
*os_mint.txt* For Vim version 8.2. Last change: 2020 Jul 14
22

33

44
VIM REFERENCE MANUAL by Jens M. Felderhoff
55

66

77
*MiNT* *Atari*
8-
This file contains the particularities for the Atari MiNT version of Vim.
8+
The Atari MiNT support was removed with patch 8.2.1215. It probably didn't
9+
work at that time, since the code was old and not maintained.
910

10-
For compiling Vim on the Atari running MiNT see "INSTALL" and "Makefile"
11-
in the src directory.
1211

13-
Vim for MiNT behaves almost exactly like the Unix version.
14-
The Unix behavior described in the documentation also refers to the
15-
MiNT version of Vim unless explicitly stated otherwise.
12+
Originally added by: Jens M. Felderhoff, e-mail: <[email protected]>
1613

17-
For wildcard expansion of <~> (home directory) you need a shell that
18-
expands the tilde. The vanilla Bourne shell doesn't recognize it.
19-
With csh and ksh it should work OK.
20-
21-
The MiNT version of vim needs the termcap file /etc/termcap with the
22-
terminal capabilities of your terminal. Builtin termcaps are
23-
supported for the vt52 terminal. Termcap entries for the TOSWIN window
24-
manager and the virtual console terminals have been appended to the
25-
termcap file that comes with the Vim distribution.
26-
27-
If you should encounter problems with swapped <BS> and <Del> keys, see
28-
|:fixdel|.
29-
30-
Because terminal updating under MiNT is often slow (e.g. serial line
31-
terminal), the 'showcmd' and 'ruler' options are default off.
32-
If you have a fast terminal, try setting them on. You might
33-
also want to set 'ttyfast'.
34-
35-
Send bug reports to
36-
37-
Jens M. Felderhoff, e-mail: <[email protected]>
3814

3915
vim:tw=78:ts=8:noet:ft=help:norl:

src/INSTALL

Lines changed: 1 addition & 200 deletions
Original file line numberDiff line numberDiff line change
@@ -181,203 +181,4 @@ OS/2 support was removed in patch 7.4.1008
181181
4. Atari MiNT
182182
=============
183183

184-
[NOTE: this is quite old, it might not work anymore]
185-
186-
To compile Vim for MiNT you may either copy Make_mint.mak to Makefile or use
187-
the Unix Makefile adapted for the MiNT configuration.
188-
189-
Now proceed as described in the Unix section.
190-
191-
Prerequisites:
192-
193-
You need a curses or termcap library that supports non-alphanumeric
194-
termcap names. If you don't have any, link with termlib.o.
195-
196-
-----------------------------------------------------------------------------
197-
198-
The rest of this file is based on the INSTALL file that comes with GNU
199-
autoconf 2.12. Not everything applies to Vim. Read Makefile too!
200-
201-
202-
Basic Installation
203-
==================
204-
205-
These are generic installation instructions.
206-
207-
The `configure' shell script attempts to guess correct values for
208-
various system-dependent variables used during compilation. It uses
209-
those values to create a `Makefile' in each directory of the package.
210-
It may also create one or more `.h' files containing system-dependent
211-
definitions. Finally, it creates a shell script `config.status' that
212-
you can run in the future to recreate the current configuration, a file
213-
`config.cache' that saves the results of its tests to speed up
214-
reconfiguring, and a file `config.log' containing compiler output
215-
(useful mainly for debugging `configure').
216-
217-
If you need to do unusual things to compile the package, please try
218-
to figure out how `configure' could check whether to do them, and mail
219-
diffs or instructions to the address given in the `README' so they can
220-
be considered for the next release. If at some point `config.cache'
221-
contains results you don't want to keep, you may remove or edit it.
222-
223-
The file `configure.ac' is used to create `configure' by a program
224-
called `autoconf'. You only need `configure.ac' if you want to change
225-
it or regenerate `configure' using a newer version of `autoconf'.
226-
227-
The simplest way to compile this package is:
228-
229-
1. `cd' to the directory containing the package's source code and type
230-
`./configure' to configure the package for your system. If you're
231-
using `csh' on an old version of System V, you might need to type
232-
`sh ./configure' instead to prevent `csh' from trying to execute
233-
`configure' itself.
234-
235-
Running `configure' takes awhile. While running, it prints some
236-
messages telling which features it is checking for.
237-
238-
2. Type `make' to compile the package.
239-
240-
3. Optionally, type `make check' to run any self-tests that come with
241-
the package.
242-
243-
4. Type `make install' to install the programs and any data files and
244-
documentation.
245-
246-
5. You can remove the program binaries and object files from the
247-
source code directory by typing `make clean'. To also remove the
248-
files that `configure' created (so you can compile the package for
249-
a different kind of computer), type `make distclean'. There is
250-
also a `make maintainer-clean' target, but that is intended mainly
251-
for the package's developers. If you use it, you may have to get
252-
all sorts of other programs in order to regenerate files that came
253-
with the distribution.
254-
255-
Compilers and Options
256-
=====================
257-
258-
Some systems require unusual options for compilation or linking that
259-
the `configure' script does not know about. You can give `configure'
260-
initial values for variables by setting them in the environment. Using
261-
a Bourne-compatible shell, you can do that on the command line like
262-
this:
263-
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
264-
265-
Or on systems that have the `env' program, you can do it like this:
266-
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
267-
268-
Compiling For Multiple Architectures
269-
====================================
270-
271-
You can compile the package for more than one kind of computer at the
272-
same time, by placing the object files for each architecture in their
273-
own directory. To do this, you must use a version of `make' that
274-
supports the `VPATH' variable, such as GNU `make'. `cd' to the
275-
directory where you want the object files and executables to go and run
276-
the `configure' script. `configure' automatically checks for the
277-
source code in the directory that `configure' is in and in `..'.
278-
279-
If you have to use a `make' that does not support the `VPATH'
280-
variable, you have to compile the package for one architecture at a time
281-
in the source code directory. After you have installed the package for
282-
one architecture, use `make distclean' before reconfiguring for another
283-
architecture.
284-
285-
Installation Names
286-
==================
287-
288-
By default, `make install' will install the package's files in
289-
`/usr/local/bin', `/usr/local/man', etc. You can specify an
290-
installation prefix other than `/usr/local' by giving `configure' the
291-
option `--prefix=PATH'.
292-
293-
You can specify separate installation prefixes for
294-
architecture-specific files and architecture-independent files. If you
295-
give `configure' the option `--exec-prefix=PATH', the package will use
296-
PATH as the prefix for installing programs and libraries.
297-
Documentation and other data files will still use the regular prefix.
298-
299-
In addition, if you use an unusual directory layout you can give
300-
options like `--bindir=PATH' to specify different values for particular
301-
kinds of files. Run `configure --help' for a list of the directories
302-
you can set and what kinds of files go in them.
303-
304-
If the package supports it, you can cause programs to be installed
305-
with an extra prefix or suffix on their names by giving `configure' the
306-
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
307-
308-
Optional Features
309-
=================
310-
311-
Some packages pay attention to `--enable-FEATURE' options to
312-
`configure', where FEATURE indicates an optional part of the package.
313-
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
314-
is something like `gnu-as' or `x' (for the X Window System). The
315-
`README' should mention any `--enable-' and `--with-' options that the
316-
package recognizes.
317-
318-
For packages that use the X Window System, `configure' can usually
319-
find the X include and library files automatically, but if it doesn't,
320-
you can use the `configure' options `--x-includes=DIR' and
321-
`--x-libraries=DIR' to specify their locations.
322-
323-
Specifying the System Type
324-
==========================
325-
326-
There may be some features `configure' can not figure out
327-
automatically, but needs to determine by the type of host the package
328-
will run on. Usually `configure' can figure that out, but if it prints
329-
a message saying it can not guess the host type, give it the
330-
`--host=TYPE' option. TYPE can either be a short name for the system
331-
type, such as `sun4', or a canonical name with three fields:
332-
CPU-COMPANY-SYSTEM
333-
334-
See the file `config.sub' for the possible values of each field. If
335-
`config.sub' isn't included in this package, then this package doesn't
336-
need to know the host type.
337-
338-
If you are building compiler tools for cross-compiling, you can also
339-
use the `--target=TYPE' option to select the type of system they will
340-
produce code for and the `--build=TYPE' option to select the type of
341-
system on which you are compiling the package.
342-
343-
Sharing Defaults
344-
================
345-
346-
If you want to set default values for `configure' scripts to share,
347-
you can create a site shell script called `config.site' that gives
348-
default values for variables like `CC', `cache_file', and `prefix'.
349-
`configure' looks for `PREFIX/share/config.site' if it exists, then
350-
`PREFIX/etc/config.site' if it exists. Or, you can set the
351-
`CONFIG_SITE' environment variable to the location of the site script.
352-
A warning: not all `configure' scripts look for a site script.
353-
354-
Operation Controls
355-
==================
356-
357-
`configure' recognizes the following options to control how it
358-
operates.
359-
360-
`--cache-file=FILE'
361-
Use and save the results of the tests in FILE instead of
362-
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
363-
debugging `configure'.
364-
365-
`--help'
366-
Print a summary of the options to `configure', and exit.
367-
368-
`--quiet'
369-
`--silent'
370-
`-q'
371-
Do not print messages saying which checks are being made. To
372-
suppress all normal output, redirect it to `/dev/null' (any error
373-
messages will still be shown).
374-
375-
`--srcdir=DIR'
376-
Look for the package's source code in directory DIR. Usually
377-
`configure' can determine that directory automatically.
378-
379-
`--version'
380-
Print the version of Autoconf used to generate the `configure'
381-
script, and exit.
382-
383-
`configure' also accepts some other, not widely useful, options.
184+
Atari MiNT support was removed in patch 8.2.1215.

0 commit comments

Comments
 (0)