1
0
forked from aniani/vim

patch 8.2.0017: OS/2 and MS-DOS are still mentioned

Problem:    OS/2 and MS-DOS are still mentioned, even though support was
            removed long ago.
Solution:   Update documentation. (Yegappan Lakshmanan, closes #5368)
This commit is contained in:
Bram Moolenaar
2019-12-17 21:27:18 +01:00
parent a48e78e11f
commit 6f345a1458
21 changed files with 121 additions and 132 deletions

View File

@@ -1,4 +1,4 @@
*autocmd.txt* For Vim version 8.2. Last change: 2019 Dec 11 *autocmd.txt* For Vim version 8.2. Last change: 2019 Dec 17
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1289,8 +1289,8 @@ The pattern is interpreted like mostly used in file names:
[^ch] match any character but 'c' and 'h' [^ch] match any character but 'c' and 'h'
Note that for all systems the '/' character is used for path separator (even Note that for all systems the '/' character is used for path separator (even
MS-DOS and OS/2). This was done because the backslash is difficult to use for MS-Windows). This was done because the backslash is difficult to use in a
in a pattern and to make the autocommands portable across different systems. pattern and to make the autocommands portable across different systems.
It is possible to use |pattern| items, but they may not work as expected, It is possible to use |pattern| items, but they may not work as expected,
because of the translation done for the above. because of the translation done for the above.

View File

@@ -611,7 +611,7 @@ attack or other people reading your file). When Vim exits the directory and
all files in it are deleted. When Vim has the setuid bit set this may cause all files in it are deleted. When Vim has the setuid bit set this may cause
problems, the temp file is owned by the setuid user but the filter command problems, the temp file is owned by the setuid user but the filter command
probably runs as the original user. probably runs as the original user.
On MS-DOS and OS/2 the first of these directories that works is used: $TMP, On MS-Windows the first of these directories that works is used: $TMP,
$TEMP, c:\TMP, c:\TEMP. $TEMP, c:\TMP, c:\TEMP.
For Unix the list of directories is: $TMPDIR, /tmp, current-dir, $HOME. For Unix the list of directories is: $TMPDIR, /tmp, current-dir, $HOME.
For MS-Windows the GetTempFileName() system function is used. For MS-Windows the GetTempFileName() system function is used.

View File

@@ -1,4 +1,4 @@
*cmdline.txt* For Vim version 8.2. Last change: 2019 Nov 26 *cmdline.txt* For Vim version 8.2. Last change: 2019 Dec 17
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -75,7 +75,7 @@ CTRL-V Insert next non-digit literally. Up to three digits form the
decimal value of a single byte. The non-digit and the three decimal value of a single byte. The non-digit and the three
digits are not considered for mapping. This works the same digits are not considered for mapping. This works the same
way as in Insert mode (see above, |i_CTRL-V|). way as in Insert mode (see above, |i_CTRL-V|).
Note: Under Windows CTRL-V is often mapped to paste text. Note: Under MS-Windows CTRL-V is often mapped to paste text.
Use CTRL-Q instead then. Use CTRL-Q instead then.
When |modifyOtherKeys| is enabled then special Escape sequence When |modifyOtherKeys| is enabled then special Escape sequence
is converted back to what it was without |modifyOtherKeys|, is converted back to what it was without |modifyOtherKeys|,
@@ -943,9 +943,9 @@ These modifiers can be given, in this order:
separator is removed. Thus ":p:h" on a directory name results separator is removed. Thus ":p:h" on a directory name results
on the directory name itself (without trailing slash). on the directory name itself (without trailing slash).
When the file name is an absolute path (starts with "/" for When the file name is an absolute path (starts with "/" for
Unix; "x:\" for MS-DOS, WIN32, OS/2; "drive:" for Amiga), that Unix; "x:\" for WIN32; "drive:" for Amiga), that part is not
part is not removed. When there is no head (path is relative removed. When there is no head (path is relative to current
to current directory) the result is empty. directory) the result is empty.
:t Tail of the file name (last component of the name). Must :t Tail of the file name (last component of the name). Must
precede any :r or :e. precede any :r or :e.
:r Root of the file name (the last extension removed). When :r Root of the file name (the last extension removed). When
@@ -1042,12 +1042,12 @@ option contains "sh", this is done twice, to avoid the shell trying to expand
the "!". the "!".
*filename-backslash* *filename-backslash*
For filesystems that use a backslash as directory separator (MS-DOS, Windows, For filesystems that use a backslash as directory separator (MS-Windows), it's
OS/2), it's a bit difficult to recognize a backslash that is used to escape a bit difficult to recognize a backslash that is used to escape the special
the special meaning of the next character. The general rule is: If the meaning of the next character. The general rule is: If the backslash is
backslash is followed by a normal file name character, it does not have a followed by a normal file name character, it does not have a special meaning.
special meaning. Therefore "\file\foo" is a valid file name, you don't have Therefore "\file\foo" is a valid file name, you don't have to type the
to type the backslash twice. backslash twice.
An exception is the '$' sign. It is a valid character in a file name. But An exception is the '$' sign. It is a valid character in a file name. But
to avoid a file name like "$home" to be interpreted as an environment variable, to avoid a file name like "$home" to be interpreted as an environment variable,

View File

@@ -519,9 +519,9 @@ The 'fileformat' option sets the <EOL> style for a file:
Previously 'textmode' was used. It is obsolete now. Previously 'textmode' was used. It is obsolete now.
When reading a file, the mentioned characters are interpreted as the <EOL>. When reading a file, the mentioned characters are interpreted as the <EOL>.
In DOS format (default for MS-DOS, OS/2 and Win32), <CR><NL> and <NL> are both In DOS format (default for Win32), <CR><NL> and <NL> are both interpreted as
interpreted as the <EOL>. Note that when writing the file in DOS format, the <EOL>. Note that when writing the file in DOS format, <CR> characters
<CR> characters will be added for each single <NL>. Also see |file-read|. will be added for each single <NL>. Also see |file-read|.
When writing a file, the mentioned characters are used for <EOL>. For DOS When writing a file, the mentioned characters are used for <EOL>. For DOS
format <CR><NL> is used. Also see |DOS-format-write|. format <CR><NL> is used. Also see |DOS-format-write|.
@@ -1023,11 +1023,11 @@ lost the original file.
*DOS-format-write* *DOS-format-write*
If the 'fileformat' is "dos", <CR> <NL> is used for <EOL>. This is default If the 'fileformat' is "dos", <CR> <NL> is used for <EOL>. This is default
for MS-DOS, Win32 and OS/2. On other systems the message "[dos format]" is for Win32. On other systems the message "[dos format]" is shown to remind you
shown to remind you that an unusual <EOL> was used. that an unusual <EOL> was used.
*Unix-format-write* *Unix-format-write*
If the 'fileformat' is "unix", <NL> is used for <EOL>. On MS-DOS, Win32 and If the 'fileformat' is "unix", <NL> is used for <EOL>. On Win32 the message
OS/2 the message "[unix format]" is shown. "[unix format]" is shown.
*Mac-format-write* *Mac-format-write*
If the 'fileformat' is "mac", <CR> is used for <EOL>. On non-Mac systems the If the 'fileformat' is "mac", <CR> is used for <EOL>. On non-Mac systems the
message "[mac format]" is shown. message "[mac format]" is shown.

View File

@@ -9753,7 +9753,7 @@ system({expr} [, {input}]) *system()* *E677*
The command executed is constructed using several options: The command executed is constructed using several options:
'shell' 'shellcmdflag' 'shellxquote' {expr} 'shellredir' {tmp} 'shellxquote' 'shell' 'shellcmdflag' 'shellxquote' {expr} 'shellredir' {tmp} 'shellxquote'
({tmp} is an automatically generated file name). ({tmp} is an automatically generated file name).
For Unix and OS/2 braces are put around {expr} to allow for For Unix, braces are put around {expr} to allow for
concatenated commands. concatenated commands.
The command will be executed in "cooked" mode, so that a The command will be executed in "cooked" mode, so that a

View File

@@ -95,9 +95,7 @@ terminal version.
Recommended place for your personal GUI initializations: Recommended place for your personal GUI initializations:
Unix $HOME/.gvimrc or $HOME/.vim/gvimrc Unix $HOME/.gvimrc or $HOME/.vim/gvimrc
OS/2 $HOME/.gvimrc, $HOME/vimfiles/gvimrc Win32 $HOME/_gvimrc, $HOME/vimfiles/gvimrc
or $VIM/.gvimrc
MS-DOS and Win32 $HOME/_gvimrc, $HOME/vimfiles/gvimrc
or $VIM/_gvimrc or $VIM/_gvimrc
Amiga s:.gvimrc, home:.gvimrc, home:vimfiles:gvimrc Amiga s:.gvimrc, home:.gvimrc, home:vimfiles:gvimrc
or $VIM/.gvimrc or $VIM/.gvimrc

View File

@@ -2008,10 +2008,10 @@ If the 'fileformats' option is not empty Vim tries to recognize the type of
changed, the detected format is only used while reading the file. changed, the detected format is only used while reading the file.
A similar thing happens with 'fileencodings'. A similar thing happens with 'fileencodings'.
On non-MS-DOS, Win32, and OS/2 systems the message "[dos format]" is shown if On non-MS-DOS and Win32 systems the message "[dos format]" is shown if a file
a file is read in DOS format, to remind you that something unusual is done. is read in DOS format, to remind you that something unusual is done. On
On Macintosh, MS-DOS, Win32, and OS/2 the message "[unix format]" is shown if Macintosh and Win32 the message "[unix format]" is shown if a file is read in
a file is read in Unix format. Unix format.
On non-Macintosh systems, the message "[Mac format]" is shown if a file is On non-Macintosh systems, the message "[Mac format]" is shown if a file is
read in Mac format. read in Mac format.

View File

@@ -1,4 +1,4 @@
*options.txt* For Vim version 8.2. Last change: 2019 Dec 06 *options.txt* For Vim version 8.2. Last change: 2019 Dec 17
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -709,7 +709,7 @@ A jump table for the options with a short description can be found at |Q_op|.
(or Vim is run inside an xterm invoked with "-cjkwidth" option.), (or Vim is run inside an xterm invoked with "-cjkwidth" option.),
this option should be set to "double" to match the width perceived this option should be set to "double" to match the width perceived
by Vim with the width of glyphs in the font. Perhaps it also has by Vim with the width of glyphs in the font. Perhaps it also has
to be set to "double" under CJK Windows 9x/ME or Windows 2k/XP to be set to "double" under CJK MS-Windows 2k/XP
when the system locale is set to one of CJK locales. See Unicode when the system locale is set to one of CJK locales. See Unicode
Standard Annex #11 (http://www.unicode.org/reports/tr11). Standard Annex #11 (http://www.unicode.org/reports/tr11).
@@ -876,7 +876,7 @@ A jump table for the options with a short description can be found at |Q_op|.
putting a ":gui" command in the .gvimrc file, before where the value putting a ":gui" command in the .gvimrc file, before where the value
of 'background' is used (e.g., before ":syntax on"). of 'background' is used (e.g., before ":syntax on").
For MS-DOS, Windows and OS/2 the default is "dark". For MS-Windows the default is "dark".
For other systems "dark" is used when 'term' is "linux", For other systems "dark" is used when 'term' is "linux",
"screen.linux", "cygwin" or "putty", or $COLORFGBG suggests a dark "screen.linux", "cygwin" or "putty", or $COLORFGBG suggests a dark
background. Otherwise the default is "light". background. Otherwise the default is "light".
@@ -1770,7 +1770,7 @@ A jump table for the options with a short description can be found at |Q_op|.
'esckeys' & off no <Esc>-keys in Insert mode 'esckeys' & off no <Esc>-keys in Insert mode
'expandtab' + off tabs not expanded to spaces 'expandtab' + off tabs not expanded to spaces
'fileformats' & "" no automatic file format detection, 'fileformats' & "" no automatic file format detection,
"dos,unix" except for DOS, Windows and OS/2 "dos,unix" except for MS-Windows
'formatexpr' + "" use 'formatprg' for auto-formatting 'formatexpr' + "" use 'formatprg' for auto-formatting
'formatoptions' & "vt" Vi compatible formatting 'formatoptions' & "vt" Vi compatible formatting
'gdefault' + off no default 'g' flag for ":s" 'gdefault' + off no default 'g' flag for ":s"
@@ -1882,9 +1882,9 @@ A jump table for the options with a short description can be found at |Q_op|.
When this option is set it overrules 'shellslash' for completion: When this option is set it overrules 'shellslash' for completion:
- When this option is set to "slash", a forward slash is used for path - When this option is set to "slash", a forward slash is used for path
completion in insert mode. This is useful when editing HTML tag, or completion in insert mode. This is useful when editing HTML tag, or
Makefile with 'noshellslash' on Windows. Makefile with 'noshellslash' on MS-Windows.
- When this option is set to "backslash", backslash is used. This is - When this option is set to "backslash", backslash is used. This is
useful when editing a batch file with 'shellslash' set on Windows. useful when editing a batch file with 'shellslash' set on MS-Windows.
- When this option is empty, same character is used as for - When this option is empty, same character is used as for
'shellslash'. 'shellslash'.
For Insert mode completion the buffer-local value is used. For For Insert mode completion the buffer-local value is used. For
@@ -4442,7 +4442,7 @@ A jump table for the options with a short description can be found at |Q_op|.
NOTE: This option is reset when 'compatible' is set. NOTE: This option is reset when 'compatible' is set.
*'isfname'* *'isf'* *'isfname'* *'isf'*
'isfname' 'isf' string (default for MS-DOS, Win32 and OS/2: 'isfname' 'isf' string (default for Win32:
"@,48-57,/,\,.,-,_,+,,,#,$,%,{,},[,],:,@-@,!,~,=" "@,48-57,/,\,.,-,_,+,,,#,$,%,{,},[,],:,@-@,!,~,="
for AMIGA: "@,48-57,/,.,-,_,+,,,$,:" for AMIGA: "@,48-57,/,.,-,_,+,,,$,:"
for VMS: "@,48-57,/,.,-,_,+,,,#,$,%,<,>,[,],:,;,~" for VMS: "@,48-57,/,.,-,_,+,,,#,$,%,<,>,[,],:,;,~"
@@ -4496,7 +4496,7 @@ A jump table for the options with a short description can be found at |Q_op|.
See |option-backslash| about including spaces and backslashes. See |option-backslash| about including spaces and backslashes.
*'isident'* *'isi'* *'isident'* *'isi'*
'isident' 'isi' string (default for MS-DOS, Win32 and OS/2: 'isident' 'isi' string (default for Win32:
"@,48-57,_,128-167,224-235" "@,48-57,_,128-167,224-235"
otherwise: "@,48-57,_,192-255") otherwise: "@,48-57,_,192-255")
global global
@@ -4510,7 +4510,7 @@ A jump table for the options with a short description can be found at |Q_op|.
expand "$HOME/.viminfo". Maybe you should change 'iskeyword' instead. expand "$HOME/.viminfo". Maybe you should change 'iskeyword' instead.
*'iskeyword'* *'isk'* *'iskeyword'* *'isk'*
'iskeyword' 'isk' string (Vim default for MS-DOS and Win32: 'iskeyword' 'isk' string (Vim default for Win32:
"@,48-57,_,128-167,224-235" "@,48-57,_,128-167,224-235"
otherwise: "@,48-57,_,192-255" otherwise: "@,48-57,_,192-255"
Vi default: "@,48-57,_") Vi default: "@,48-57,_")
@@ -4530,7 +4530,7 @@ A jump table for the options with a short description can be found at |Q_op|.
set and to the Vim default value when 'compatible' is reset. set and to the Vim default value when 'compatible' is reset.
*'isprint'* *'isp'* *'isprint'* *'isp'*
'isprint' 'isp' string (default for MS-DOS, Win32, OS/2 and Macintosh: 'isprint' 'isp' string (default for Win32 and Macintosh:
"@,~-255"; otherwise: "@,161-255") "@,~-255"; otherwise: "@,161-255")
global global
The characters given by this option are displayed directly on the The characters given by this option are displayed directly on the
@@ -5484,7 +5484,7 @@ A jump table for the options with a short description can be found at |Q_op|.
*'opendevice'* *'odev'* *'noopendevice'* *'noodev'* *'opendevice'* *'odev'* *'noopendevice'* *'noodev'*
'opendevice' 'odev' boolean (default off) 'opendevice' 'odev' boolean (default off)
global global
{only for MS-DOS, MS-Windows and OS/2} {only for MS-Windows}
Enable reading and writing from devices. This may get Vim stuck on a Enable reading and writing from devices. This may get Vim stuck on a
device that can be opened but doesn't actually do the I/O. Therefore device that can be opened but doesn't actually do the I/O. Therefore
it is off by default. it is off by default.
@@ -5616,7 +5616,6 @@ A jump table for the options with a short description can be found at |Q_op|.
*'path'* *'pa'* *E343* *E345* *E347* *E854* *'path'* *'pa'* *E343* *E345* *E347* *E854*
'path' 'pa' string (default on Unix: ".,/usr/include,," 'path' 'pa' string (default on Unix: ".,/usr/include,,"
on OS/2: ".,/emx/include,,"
other systems: ".,,") other systems: ".,,")
global or local to buffer |global-local| global or local to buffer |global-local|
This is a list of directories which will be searched when using the This is a list of directories which will be searched when using the
@@ -6195,7 +6194,7 @@ A jump table for the options with a short description can be found at |Q_op|.
$VIMRUNTIME, $VIMRUNTIME,
$VIM/vimfiles/after, $VIM/vimfiles/after,
home:vimfiles/after" home:vimfiles/after"
PC, OS/2: "$HOME/vimfiles, PC: "$HOME/vimfiles,
$VIM/vimfiles, $VIM/vimfiles,
$VIMRUNTIME, $VIMRUNTIME,
$VIM/vimfiles/after, $VIM/vimfiles/after,
@@ -6465,7 +6464,7 @@ A jump table for the options with a short description can be found at |Q_op|.
*'shell'* *'sh'* *E91* *'shell'* *'sh'* *E91*
'shell' 'sh' string (default $SHELL or "sh", 'shell' 'sh' string (default $SHELL or "sh",
MS-DOS and Win32: "command.com" or MS-DOS and Win32: "command.com" or
"cmd.exe", OS/2: "cmd") "cmd.exe")
global global
Name of the shell to use for ! and :! commands. When changing the Name of the shell to use for ! and :! commands. When changing the
value also check these options: 'shelltype', 'shellpipe', 'shellslash' value also check these options: 'shelltype', 'shellpipe', 'shellslash'
@@ -6592,7 +6591,7 @@ A jump table for the options with a short description can be found at |Q_op|.
*'shellslash'* *'ssl'* *'noshellslash'* *'nossl'* *'shellslash'* *'ssl'* *'noshellslash'* *'nossl'*
'shellslash' 'ssl' boolean (default off) 'shellslash' 'ssl' boolean (default off)
global global
{only for MSDOS, MS-Windows and OS/2} {only for MS-Windows}
When set, a forward slash is used when expanding file names. This is When set, a forward slash is used when expanding file names. This is
useful when a Unix-like shell is used instead of command.com or useful when a Unix-like shell is used instead of command.com or
cmd.exe. Backward slashes can still be typed, but they are changed to cmd.exe. Backward slashes can still be typed, but they are changed to
@@ -7668,7 +7667,6 @@ A jump table for the options with a short description can be found at |Q_op|.
on Mac: "mac-ansi" on Mac: "mac-ansi"
on MiNT: "vt52" on MiNT: "vt52"
on MS-DOS: "pcterm" on MS-DOS: "pcterm"
on OS/2: "os2ansi"
on Unix: "ansi" on Unix: "ansi"
on VMS: "ansi" on VMS: "ansi"
on Win 32: "win32") on Win 32: "win32")
@@ -7827,7 +7825,7 @@ A jump table for the options with a short description can be found at |Q_op|.
set and to the Vim default value when 'compatible' is reset. set and to the Vim default value when 'compatible' is reset.
*'textmode'* *'tx'* *'notextmode'* *'notx'* *'textmode'* *'tx'* *'notextmode'* *'notx'*
'textmode' 'tx' boolean (MS-DOS, Win32 and OS/2: default on, 'textmode' 'tx' boolean (Win32: default on,
others: default off) others: default off)
local to buffer local to buffer
This option is obsolete. Use 'fileformat'. This option is obsolete. Use 'fileformat'.
@@ -8215,8 +8213,7 @@ A jump table for the options with a short description can be found at |Q_op|.
NOTE: This option is reset when 'compatible' is set. NOTE: This option is reset when 'compatible' is set.
*'undolevels'* *'ul'* *'undolevels'* *'ul'*
'undolevels' 'ul' number (default 100, 1000 for Unix, VMS, 'undolevels' 'ul' number (default 100, 1000 for Unix, VMS, Win32)
Win32 and OS/2)
global or local to buffer |global-local| global or local to buffer |global-local|
Maximum number of changes that can be undone. Since undo information Maximum number of changes that can be undone. Since undo information
is kept in memory, higher numbers will cause more memory to be used. is kept in memory, higher numbers will cause more memory to be used.
@@ -8343,7 +8340,7 @@ A jump table for the options with a short description can be found at |Q_op|.
displayed when 'verbosefile' is set. displayed when 'verbosefile' is set.
*'viewdir'* *'vdir'* *'viewdir'* *'vdir'*
'viewdir' 'vdir' string (default for Amiga, MS-DOS, OS/2 and Win32: 'viewdir' 'vdir' string (default for Amiga and Win32:
"$VIM/vimfiles/view", "$VIM/vimfiles/view",
for Unix: "~/.vim/view", for Unix: "~/.vim/view",
for Macintosh: "$VIM:vimfiles:view" for Macintosh: "$VIM:vimfiles:view"
@@ -8373,16 +8370,16 @@ A jump table for the options with a short description can be found at |Q_op|.
slash backslashes in file names replaced with forward slash backslashes in file names replaced with forward
slashes slashes
unix with Unix end-of-line format (single <NL>), even when unix with Unix end-of-line format (single <NL>), even when
on Windows or DOS on MS-Windows
curdir the window-local directory, if set with `:lcd` curdir the window-local directory, if set with `:lcd`
"slash" and "unix" are useful on Windows when sharing view files "slash" and "unix" are useful on MS-Windows when sharing view files
with Unix. The Unix version of Vim cannot source dos format scripts, with Unix. The Unix version of Vim cannot source dos format scripts,
but the Windows version of Vim can source unix format scripts. but the MS-Windows version of Vim can source unix format scripts.
*'viminfo'* *'vi'* *E526* *E527* *E528* *'viminfo'* *'vi'* *E526* *E527* *E528*
'viminfo' 'vi' string (Vi default: "", Vim default for MS-DOS, 'viminfo' 'vi' string (Vi default: "", Vim default for
Windows and OS/2: '100,<50,s10,h,rA:,rB:, MS-Windows: '100,<50,s10,h,rA:,rB:,
for Amiga: '100,<50,s10,h,rdf0:,rdf1:,rdf2: for Amiga: '100,<50,s10,h,rdf0:,rdf1:,rdf2:
for others: '100,<50,s10,h) for others: '100,<50,s10,h)
global global

View File

@@ -1,4 +1,4 @@
*print.txt* For Vim version 8.2. Last change: 2019 May 05 *print.txt* For Vim version 8.2. Last change: 2019 Dec 17
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -94,7 +94,7 @@ If the option is empty, then vim will use the system default printer for
*penc-option* *E620* *penc-option* *E620*
'printencoding' 'penc' String (default empty, except for: 'printencoding' 'penc' String (default empty, except for:
Windows, OS/2: cp1252, MS-Windows: cp1252,
Macintosh: mac-roman, Macintosh: mac-roman,
VMS: dec-mcs, VMS: dec-mcs,
HPUX: hp-roman8, HPUX: hp-roman8,
@@ -124,7 +124,7 @@ cannot be converted will be replaced with upside down question marks.
Four print character encoding files are provided to support default Mac, VMS, Four print character encoding files are provided to support default Mac, VMS,
HPUX, and EBCDIC character encodings and are used by default on these HPUX, and EBCDIC character encodings and are used by default on these
platforms. Code page 1252 print character encoding is used by default on platforms. Code page 1252 print character encoding is used by default on
Windows and OS/2 platforms. MS-Windows platform.
*pexpr-option* *pexpr-option*
'printexpr' 'pexpr' String (default: see below) 'printexpr' 'pexpr' String (default: see below)
@@ -142,8 +142,8 @@ the file: >
system('lpr' . (&printdevice == '' ? '' : ' -P' . &printdevice) system('lpr' . (&printdevice == '' ? '' : ' -P' . &printdevice)
. ' ' . v:fname_in) . delete(v:fname_in) + v:shell_error . ' ' . v:fname_in) . delete(v:fname_in) + v:shell_error
On MS-Dos, MS-Windows and OS/2 machines the default is to copy the file to the On MS-Windows machines the default is to copy the file to the currently
currently specified printdevice: > specified printdevice: >
system('copy' . ' ' . v:fname_in . (&printdevice == '' system('copy' . ' ' . v:fname_in . (&printdevice == ''
? ' LPT1:' : (' \"' . &printdevice . '\"'))) ? ' LPT1:' : (' \"' . &printdevice . '\"')))
@@ -621,7 +621,7 @@ OpenVMS
http://wwwthep.physik.uni-mainz.de/~plass/gv/ http://wwwthep.physik.uni-mainz.de/~plass/gv/
Windows and OS/2 MS-Windows
- GSview. Obtainable from: - GSview. Obtainable from:
@@ -636,7 +636,7 @@ DOS
Linux Linux
- GSview. Linux version of the popular Windows and OS/2 previewer. - GSview. Linux version of the popular MS-Windows.
Obtainable from: Obtainable from:
http://www.cs.wisc.edu/~ghost/gsview/ http://www.cs.wisc.edu/~ghost/gsview/

View File

@@ -935,11 +935,11 @@ or simpler >
"$*" can be given multiple times, for example: > "$*" can be given multiple times, for example: >
:set makeprg=gcc\ -o\ $*\ $* :set makeprg=gcc\ -o\ $*\ $*
The 'shellpipe' option defaults to ">" for the Amiga, MS-DOS and Win32. This The 'shellpipe' option defaults to ">" for the Amiga and Win32. This means
means that the output of the compiler is saved in a file and not shown on the that the output of the compiler is saved in a file and not shown on the screen
screen directly. For Unix "| tee" is used. The compiler output is shown on directly. For Unix "| tee" is used. The compiler output is shown on the
the screen and saved in a file the same time. Depending on the shell used screen and saved in a file the same time. Depending on the shell used "|&
"|& tee" or "2>&1| tee" is the default, so stderr output will be included. tee" or "2>&1| tee" is the default, so stderr output will be included.
If 'shellpipe' is empty, the {errorfile} part will be omitted. This is useful If 'shellpipe' is empty, the {errorfile} part will be omitted. This is useful
for compilers that write to an errorfile themselves (e.g., Manx's Amiga C). for compilers that write to an errorfile themselves (e.g., Manx's Amiga C).
@@ -1384,9 +1384,9 @@ normally happens by matching following characters and items. When nothing is
following the rest of the line is matched. If "%f" is followed by a '%' or a following the rest of the line is matched. If "%f" is followed by a '%' or a
backslash, it will look for a sequence of 'isfname' characters. backslash, it will look for a sequence of 'isfname' characters.
On MS-DOS, MS-Windows and OS/2 a leading "C:" will be included in "%f", even On MS-Windows a leading "C:" will be included in "%f", even when using "%f:".
when using "%f:". This means that a file name which is a single alphabetical This means that a file name which is a single alphabetical letter will not be
letter will not be detected. detected.
The "%p" conversion is normally followed by a "^". It's used for compilers The "%p" conversion is normally followed by a "^". It's used for compilers
that output a line like: > that output a line like: >

View File

@@ -414,13 +414,13 @@ with CTRL-V followed by the three digit decimal code. This does NOT work for
the <t_xx> termcap codes, these can only be used in mappings. the <t_xx> termcap codes, these can only be used in mappings.
*:source_crnl* *W15* *:source_crnl* *W15*
MS-DOS, Win32 and OS/2: Files that are read with ":source" normally have Win32: Files that are read with ":source" normally have <CR><NL> <EOL>s.
<CR><NL> <EOL>s. These always work. If you are using a file with <NL> <EOL>s These always work. If you are using a file with <NL> <EOL>s (for example, a
(for example, a file made on Unix), this will be recognized if 'fileformats' file made on Unix), this will be recognized if 'fileformats' is not empty and
is not empty and the first line does not end in a <CR>. This fails if the the first line does not end in a <CR>. This fails if the first line has
first line has something like ":map <F1> :help^M", where "^M" is a <CR>. If something like ":map <F1> :help^M", where "^M" is a <CR>. If the first line
the first line ends in a <CR>, but following ones don't, you will get an error ends in a <CR>, but following ones don't, you will get an error message,
message, because the <CR> from the first lines will be lost. because the <CR> from the first lines will be lost.
Mac Classic: Files that are read with ":source" normally have <CR> <EOL>s. Mac Classic: Files that are read with ":source" normally have <CR> <EOL>s.
These always work. If you are using a file with <NL> <EOL>s (for example, a These always work. If you are using a file with <NL> <EOL>s (for example, a

View File

@@ -784,8 +784,6 @@ accordingly. Vim proceeds in this order:
Places for your personal initializations: Places for your personal initializations:
Unix $HOME/.vimrc or $HOME/.vim/vimrc Unix $HOME/.vimrc or $HOME/.vim/vimrc
OS/2 $HOME/.vimrc, $HOME/vimfiles/vimrc
or $VIM/.vimrc (or _vimrc)
MS-Windows $HOME/_vimrc, $HOME/vimfiles/vimrc MS-Windows $HOME/_vimrc, $HOME/vimfiles/vimrc
or $VIM/_vimrc or $VIM/_vimrc
Amiga s:.vimrc, home:.vimrc, home:vimfiles:vimrc Amiga s:.vimrc, home:.vimrc, home:vimfiles:vimrc
@@ -811,7 +809,7 @@ accordingly. Vim proceeds in this order:
a. If vim was started as |evim| or |eview| or with the |-y| argument, the a. If vim was started as |evim| or |eview| or with the |-y| argument, the
script $VIMRUNTIME/evim.vim will be loaded. script $VIMRUNTIME/evim.vim will be loaded.
*system-vimrc* *system-vimrc*
b. For Unix, MS-DOS, MS-Windows, OS/2, VMS, Macintosh, RISC-OS and Amiga b. For Unix, MS-Windows, VMS, Macintosh, RISC-OS and Amiga
the system vimrc file is read for initializations. The path of this the system vimrc file is read for initializations. The path of this
file is shown with the ":version" command. Mostly it's "$VIM/vimrc". file is shown with the ":version" command. Mostly it's "$VIM/vimrc".
Note that this file is ALWAYS read in 'compatible' mode, since the Note that this file is ALWAYS read in 'compatible' mode, since the
@@ -827,22 +825,22 @@ accordingly. Vim proceeds in this order:
I The environment variable VIMINIT (see also |compatible-default|) (*) I The environment variable VIMINIT (see also |compatible-default|) (*)
The value of $VIMINIT is used as an Ex command line. The value of $VIMINIT is used as an Ex command line.
II The user vimrc file(s): II The user vimrc file(s):
"$HOME/.vimrc" (for Unix and OS/2) (*) "$HOME/.vimrc" (for Unix) (*)
"$HOME/.vim/vimrc" (for Unix and OS/2) (*) "$HOME/.vim/vimrc" (for Unix) (*)
"s:.vimrc" (for Amiga) (*) "s:.vimrc" (for Amiga) (*)
"home:.vimrc" (for Amiga) (*) "home:.vimrc" (for Amiga) (*)
"home:vimfiles:vimrc" (for Amiga) (*) "home:vimfiles:vimrc" (for Amiga) (*)
"$VIM/.vimrc" (for OS/2 and Amiga) (*) "$VIM/.vimrc" (for Amiga) (*)
"$HOME/_vimrc" (for MS-DOS and Win32) (*) "$HOME/_vimrc" (for Win32) (*)
"$HOME/vimfiles/vimrc" (for MS-DOS and Win32) (*) "$HOME/vimfiles/vimrc" (for Win32) (*)
"$VIM/_vimrc" (for MS-DOS and Win32) (*) "$VIM/_vimrc" (for Win32) (*)
Note: For Unix, OS/2 and Amiga, when ".vimrc" does not exist, Note: For Unix and Amiga, when ".vimrc" does not exist,
"_vimrc" is also tried, in case an MS-DOS compatible file "_vimrc" is also tried, in case an MS-DOS compatible file
system is used. For MS-DOS and Win32 ".vimrc" is checked system is used. For MS-Windows ".vimrc" is checked after
after "_vimrc", in case long file names are used. "_vimrc", in case long file names are used.
Note: For MS-DOS and Win32, "$HOME" is checked first. If no Note: For Win32, "$HOME" is checked first. If no "_vimrc" or
"_vimrc" or ".vimrc" is found there, "$VIM" is tried. ".vimrc" is found there, "$VIM" is tried. See |$VIM| for when
See |$VIM| for when $VIM is not set. $VIM is not set.
III The environment variable EXINIT. III The environment variable EXINIT.
The value of $EXINIT is used as an Ex command line. The value of $EXINIT is used as an Ex command line.
IV The user exrc file(s). Same as for the user vimrc file, but with IV The user exrc file(s). Same as for the user vimrc file, but with
@@ -855,12 +853,12 @@ accordingly. Vim proceeds in this order:
d. If the 'exrc' option is on (which is NOT the default), the current d. If the 'exrc' option is on (which is NOT the default), the current
directory is searched for three files. The first that exists is used, directory is searched for three files. The first that exists is used,
the others are ignored. the others are ignored.
- The file ".vimrc" (for Unix, Amiga and OS/2) (*) - The file ".vimrc" (for Unix, Amiga) (*)
"_vimrc" (for MS-DOS and Win32) (*) "_vimrc" (for Win32) (*)
- The file "_vimrc" (for Unix, Amiga and OS/2) (*) - The file "_vimrc" (for Unix, Amiga) (*)
".vimrc" (for MS-DOS and Win32) (*) ".vimrc" (for Win32) (*)
- The file ".exrc" (for Unix, Amiga and OS/2) - The file ".exrc" (for Unix, Amiga)
"_exrc" (for MS-DOS and Win32) "_exrc" (for Win32)
(*) Using this file or environment variable will cause 'compatible' to be (*) Using this file or environment variable will cause 'compatible' to be
off by default. See |compatible-default|. off by default. See |compatible-default|.
@@ -948,9 +946,9 @@ Some hints on using initializations ~
Standard setup: Standard setup:
Create a vimrc file to set the default settings and mappings for all your edit Create a vimrc file to set the default settings and mappings for all your edit
sessions. Put it in a place so that it will be found by 3b: sessions. Put it in a place so that it will be found by 3b:
~/.vimrc (Unix and OS/2) ~/.vimrc (Unix)
s:.vimrc (Amiga) s:.vimrc (Amiga)
$VIM\_vimrc (MS-DOS and Win32) $VIM\_vimrc (Win32)
Note that creating a vimrc file will cause the 'compatible' option to be off Note that creating a vimrc file will cause the 'compatible' option to be off
by default. See |compatible-default|. by default. See |compatible-default|.
@@ -990,10 +988,9 @@ version 5.0) are not recognized.
MS-DOS line separators ~ MS-DOS line separators ~
On MS-DOS-like systems (MS-DOS itself, Win32, and OS/2), Vim assumes that all On MS-Windows, Vim assumes that all the vimrc files have <CR> <NL> pairs as
the vimrc files have <CR> <NL> pairs as line separators. This will give line separators. This will give problems if you have a file with only <NL>s
problems if you have a file with only <NL>s and have a line like and have a line like ":map xx yy^M". The trailing ^M will be ignored.
":map xx yy^M". The trailing ^M will be ignored.
Vi compatible default value ~ Vi compatible default value ~
@@ -1145,11 +1142,11 @@ will try to get the value for $VIM in this order:
problem). The file name ("help.txt" or any other) is removed. Then problem). The file name ("help.txt" or any other) is removed. Then
trailing directory names are removed, in this order: "doc", "runtime" and trailing directory names are removed, in this order: "doc", "runtime" and
"vim{version}" (e.g., "vim54"). "vim{version}" (e.g., "vim54").
3. For MSDOS, Win32 and OS/2 Vim tries to use the directory name of the 3. For Win32 Vim tries to use the directory name of the executable. If it
executable. If it ends in "/src", this is removed. This is useful if you ends in "/src", this is removed. This is useful if you unpacked the .zip
unpacked the .zip file in some directory, and adjusted the search path to file in some directory, and adjusted the search path to find the vim
find the vim executable. Trailing directory names are removed, in this executable. Trailing directory names are removed, in this order: "runtime"
order: "runtime" and "vim{version}" (e.g., "vim54"). and "vim{version}" (e.g., "vim54").
4. For Unix the compile-time defined installation directory is used (see the 4. For Unix the compile-time defined installation directory is used (see the
output of ":version"). output of ":version").
@@ -1573,11 +1570,10 @@ remembered.
VIMINFO FILE NAME *viminfo-file-name* VIMINFO FILE NAME *viminfo-file-name*
- The default name of the viminfo file is "$HOME/.viminfo" for Unix and OS/2, - The default name of the viminfo file is "$HOME/.viminfo" for Unix,
"s:.viminfo" for Amiga, "$HOME\_viminfo" for MS-DOS and Win32. For the last "s:.viminfo" for Amiga, "$HOME\_viminfo" for Win32. For the last two, when
two, when $HOME is not set, "$VIM\_viminfo" is used. When $VIM is also not $HOME is not set, "$VIM\_viminfo" is used. When $VIM is also not set,
set, "c:\_viminfo" is used. For OS/2 "$VIM/.viminfo" is used when $HOME is "c:\_viminfo" is used.
not set and $VIM is set.
- The 'n' flag in the 'viminfo' option can be used to specify another viminfo - The 'n' flag in the 'viminfo' option can be used to specify another viminfo
file name |'viminfo'|. file name |'viminfo'|.
- The "-i" Vim argument can be used to set another file name, |-i|. When the - The "-i" Vim argument can be used to set another file name, |-i|. When the

View File

@@ -71,7 +71,7 @@ you are using:
Unix: > Unix: >
:!cp -i $VIMRUNTIME/vimrc_example.vim ~/.vimrc :!cp -i $VIMRUNTIME/vimrc_example.vim ~/.vimrc
MS-DOS, MS-Windows, OS/2: > MS-Windows: >
:!copy $VIMRUNTIME/vimrc_example.vim $VIM/_vimrc :!copy $VIMRUNTIME/vimrc_example.vim $VIM/_vimrc
Amiga: > Amiga: >
:!copy $VIMRUNTIME/vimrc_example.vim $VIM/.vimrc :!copy $VIMRUNTIME/vimrc_example.vim $VIM/.vimrc

View File

@@ -472,7 +472,7 @@ Then copy the file to your plugin directory:
system plugin directory ~ system plugin directory ~
Unix ~/.vim/plugin/ Unix ~/.vim/plugin/
PC and OS/2 $HOME/vimfiles/plugin or $VIM/vimfiles/plugin PC $HOME/vimfiles/plugin or $VIM/vimfiles/plugin
Amiga s:vimfiles/plugin Amiga s:vimfiles/plugin
Macintosh $VIM:vimfiles:plugin Macintosh $VIM:vimfiles:plugin
Mac OS X ~/.vim/plugin/ Mac OS X ~/.vim/plugin/

View File

@@ -1,4 +1,4 @@
*usr_41.txt* For Vim version 8.2. Last change: 2019 Nov 21 *usr_41.txt* For Vim version 8.2. Last change: 2019 Dec 17
VIM USER MANUAL - by Bram Moolenaar VIM USER MANUAL - by Bram Moolenaar
@@ -1699,8 +1699,8 @@ Here is a summary of items that apply to Vim scripts. They are also mentioned
elsewhere, but form a nice checklist. elsewhere, but form a nice checklist.
The end-of-line character depends on the system. For Unix a single <NL> The end-of-line character depends on the system. For Unix a single <NL>
character is used. For MS-DOS, Windows, OS/2 and the like, <CR><LF> is used. character is used. For MS-Windows and the like, <CR><LF> is used. This is
This is important when using mappings that end in a <CR>. See |:source_crnl|. important when using mappings that end in a <CR>. See |:source_crnl|.
WHITE SPACE WHITE SPACE
@@ -1885,7 +1885,7 @@ First of all you must choose a name for your plugin. The features provided
by the plugin should be clear from its name. And it should be unlikely that by the plugin should be clear from its name. And it should be unlikely that
someone else writes a plugin with the same name but which does something someone else writes a plugin with the same name but which does something
different. And please limit the name to 8 characters, to avoid problems on different. And please limit the name to 8 characters, to avoid problems on
old Windows systems. old MS-Windows systems.
A script that corrects typing mistakes could be called "typecorr.vim". We A script that corrects typing mistakes could be called "typecorr.vim". We
will use it here as an example. will use it here as an example.

View File

@@ -1,4 +1,4 @@
*vi_diff.txt* For Vim version 8.2. Last change: 2019 Nov 12 *vi_diff.txt* For Vim version 8.2. Last change: 2019 Dec 17
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -136,11 +136,7 @@ Support for different systems.
- All Unix systems (it works on all systems it was tested on, although - All Unix systems (it works on all systems it was tested on, although
the GUI and Perl interface may not work everywhere). the GUI and Perl interface may not work everywhere).
- Amiga (500, 1000, 1200, 2000, 3000, 4000, ...). - Amiga (500, 1000, 1200, 2000, 3000, 4000, ...).
- MS-DOS in real-mode (no additional drivers required). - Windows NT, with support for long file names.
- In protected mode on Windows 3.1 and MS-DOS (DPMI driver required).
- Windows 95 and Windows NT, with support for long file names.
- OS/2 (needs emx.dll)
- Atari MiNT
- VMS - VMS
- BeOS - BeOS
- Macintosh - Macintosh

View File

@@ -6,7 +6,7 @@
" Last change: 2016 Apr 05 " Last change: 2016 Apr 05
" "
" To use it, copy it to " To use it, copy it to
" for Unix and OS/2: ~/.gvimrc " for Unix: ~/.gvimrc
" for Amiga: s:.gvimrc " for Amiga: s:.gvimrc
" for MS-DOS and Win32: $VIM\_gvimrc " for MS-DOS and Win32: $VIM\_gvimrc
" for OpenVMS: sys$login:.gvimrc " for OpenVMS: sys$login:.gvimrc

View File

@@ -34,4 +34,4 @@ xcmdsrv_client.c: Example for a client program that communicates with a Vim
unicode.vim Vim script to generate tables for src/mbyte.c. unicode.vim Vim script to generate tables for src/mbyte.c.
[xxd (and tee for OS/2) can be found in the src directory] [xxd can be found in the src directory]

View File

@@ -1,12 +1,12 @@
" An example for a vimrc file. " An example for a vimrc file.
" "
" Maintainer: Bram Moolenaar <Bram@vim.org> " Maintainer: Bram Moolenaar <Bram@vim.org>
" Last change: 2019 Jan 26 " Last change: 2019 Dec 17
" "
" To use it, copy it to " To use it, copy it to
" for Unix and OS/2: ~/.vimrc " for Unix: ~/.vimrc
" for Amiga: s:.vimrc " for Amiga: s:.vimrc
" for MS-DOS and Win32: $VIM\_vimrc " for MS-Windows: $VIM\_vimrc
" for OpenVMS: sys$login:.vimrc " for OpenVMS: sys$login:.vimrc
" When started as "evim", evim.vim will already have done these settings, bail " When started as "evim", evim.vim will already have done these settings, bail

View File

@@ -944,7 +944,7 @@
* Always included, since either FEAT_MOUSE_XTERM or * Always included, since either FEAT_MOUSE_XTERM or
* DOS_MOUSE is defined. * DOS_MOUSE is defined.
*/ */
// OS/2 and Amiga console have no mouse support // Amiga console has no mouse support
#if defined(UNIX) || defined(VMS) #if defined(UNIX) || defined(VMS)
# define FEAT_MOUSE_XTERM # define FEAT_MOUSE_XTERM
# ifdef FEAT_BIG # ifdef FEAT_BIG

View File

@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
17,
/**/ /**/
16, 16,
/**/ /**/