Skip to content

Commit e6977ce

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 5af4e39 + 2954719 commit e6977ce

Some content is hidden

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

50 files changed

+772
-252
lines changed

runtime/autoload/xmlformat.vim

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" Vim plugin for formatting XML
2-
" Last Change: Thu, 22 May 2018 21:26:55 +0100
3-
" Version: 0.1
4-
" Author: Christian Brabandt <[email protected]>
5-
" Repository: https://github.com/chrisbra/vim-xml-ftplugin
6-
" License: VIM License
2+
" Last Change: Thu, 07 Dec 2018
3+
" Version: 0.1
4+
" Author: Christian Brabandt <[email protected]>
5+
" Repository: https://github.com/chrisbra/vim-xml-ftplugin
6+
" License: VIM License
77
" Documentation: see :h xmlformat.txt (TODO!)
88
" ---------------------------------------------------------------------
99
" Load Once: {{{1
@@ -85,7 +85,11 @@ func! s:Trim(item)
8585
endfunc
8686
" Check if tag is a new opening tag <tag> {{{1
8787
func! s:StartTag(tag)
88-
return a:tag =~? '^\s*<[^/?]'
88+
let is_comment = s:IsComment(a:tag)
89+
return a:tag =~? '^\s*<[^/?]' && !is_comment
90+
endfunc
91+
func! s:IsComment(tag)
92+
return a:tag =~? '<!--'
8993
endfunc
9094
" Remove one level of indentation {{{1
9195
func! s:DecreaseIndent()

runtime/doc/digraph.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,14 @@ this, you will have to type <BS> e again. To avoid this don't set the
111111

112112
You may have problems using Vim with characters which have a value above 128.
113113
For example: You insert ue (u-umlaut) and the editor echoes \334 in Insert
114-
mode. After leaving the Insert mode everything is fine. Note that fmt
115-
removes all characters with a value above 128 from the text being formatted.
116-
On some Unix systems this means you have to define the environment-variable
117-
LC_CTYPE. If you are using csh, then put the following line in your .cshrc: >
118-
setenv LC_CTYPE iso_8859_1
114+
mode. After leaving the Insert mode everything is fine. On some Unix systems
115+
this means you have to define the environment-variable LC_CTYPE. If you are
116+
using csh, then put the following line in your .cshrc: >
117+
setenv LC_CTYPE en_US.utf8
118+
(or similar for a different language or country). The value must be a valid
119+
locale on your system, i.e. on Unix-like systems it must be present in the
120+
output of >
121+
locale -a
119122
120123
==============================================================================
121124
3. Default digraphs *digraphs-default*

runtime/doc/eval.txt

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.1. Last change: 2018 May 17
1+
*eval.txt* For Vim version 8.1. Last change: 2018 Dec 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -518,7 +518,7 @@ To loop over the values use the |values()| function: >
518518
:endfor
519519
520520
If you want both the key and the value use the |items()| function. It returns
521-
a List in which each item is a List with two items, the key and the value: >
521+
a List in which each item is a List with two items, the key and the value: >
522522
:for [key, value] in items(mydict)
523523
: echo key . ': ' . value
524524
:endfor
@@ -1088,11 +1088,6 @@ These are INVALID:
10881088
3. empty {M}
10891089
1e40 missing .{M}
10901090

1091-
*float-pi* *float-e*
1092-
A few useful values to copy&paste: >
1093-
:let pi = 3.14159265359
1094-
:let e = 2.71828182846
1095-
10961091
Rationale:
10971092
Before floating point was introduced, the text "123.456" was interpreted as
10981093
the two numbers "123" and "456", both converted to a string and concatenated,
@@ -1101,6 +1096,15 @@ could not find it intentionally being used in Vim scripts, this backwards
11011096
incompatibility was accepted in favor of being able to use the normal notation
11021097
for floating point numbers.
11031098

1099+
*float-pi* *float-e*
1100+
A few useful values to copy&paste: >
1101+
:let pi = 3.14159265359
1102+
:let e = 2.71828182846
1103+
Or, if you don't want to write them in as floating-point literals, you can
1104+
also use functions, like the following: >
1105+
:let pi = acos(-1.0)
1106+
:let e = exp(1.0)
1107+
11041108
*floating-point-precision*
11051109
The precision and range of floating points numbers depends on what "double"
11061110
means in the library Vim was compiled with. There is no way to change this at
@@ -1438,7 +1442,9 @@ Note that this means that filetype plugins don't get a different set of script
14381442
variables for each buffer. Use local buffer variables instead |b:var|.
14391443

14401444

1441-
Predefined Vim variables: *vim-variable* *v:var* *v:*
1445+
PREDEFINED VIM VARIABLES *vim-variable* *v:var* *v:*
1446+
*E963*
1447+
Some variables can be set by the user, but the type cannot be changed.
14421448

14431449
*v:beval_col* *beval_col-variable*
14441450
v:beval_col The number of the column, over which the mouse pointer is.
@@ -7845,7 +7851,8 @@ str2float({expr}) *str2float()*
78457851
as when using a floating point number in an expression, see
78467852
|floating-point-format|. But it's a bit more permissive.
78477853
E.g., "1e40" is accepted, while in an expression you need to
7848-
write "1.0e40".
7854+
write "1.0e40". The hexadecimal form "0x123" is also
7855+
accepted, but not others, like binary or octal.
78497856
Text after the number is silently ignored.
78507857
The decimal point is always '.', no matter what the locale is
78517858
set to. A comma ends the number: "12,345.67" is converted to

runtime/doc/map.txt

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 8.1. Last change: 2018 May 13
1+
*map.txt* For Vim version 8.1. Last change: 2018 Dec 08
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1223,14 +1223,19 @@ See |:verbose-cmd| for more information.
12231223
attributes (see below) are {attr}. If the command
12241224
already exists, an error is reported, unless a ! is
12251225
specified, in which case the command is redefined.
1226+
There is one exception: When sourcing a script again,
1227+
a command that was previously defined in that script
1228+
will be silently replaced.
1229+
12261230

12271231
:delc[ommand] {cmd} *:delc* *:delcommand* *E184*
12281232
Delete the user-defined command {cmd}.
12291233

12301234
:comc[lear] *:comc* *:comclear*
12311235
Delete all user-defined commands.
12321236

1233-
Command attributes
1237+
1238+
Command attributes ~
12341239

12351240
User-defined commands are treated by Vim just like any other Ex commands. They
12361241
can have arguments, or have a range specified. Arguments are subject to
@@ -1241,8 +1246,9 @@ There are a number of attributes, split into four categories: argument
12411246
handling, completion behavior, range handling, and special cases. The
12421247
attributes are described below, by category.
12431248

1244-
Argument handling *E175* *E176* *:command-nargs*
12451249

1250+
Argument handling ~
1251+
*E175* *E176* *:command-nargs*
12461252
By default, a user defined command will take no arguments (and an error is
12471253
reported if any are supplied). However, it is possible to specify that the
12481254
command can take arguments, using the -nargs attribute. Valid cases are:
@@ -1271,8 +1277,10 @@ defined, not where it is invoked! Example:
12711277
Executing script2.vim will result in "None" being echoed. Not what you
12721278
intended! Calling a function may be an alternative.
12731279

1274-
Completion behavior *:command-completion* *E179*
1275-
*E180* *E181* *:command-complete*
1280+
1281+
Completion behavior ~
1282+
*:command-completion* *E179* *E180* *E181*
1283+
*:command-complete*
12761284
By default, the arguments of user defined commands do not undergo completion.
12771285
However, by specifying one or the other of the following attributes, argument
12781286
completion can be enabled:
@@ -1317,9 +1325,9 @@ completion can be enabled:
13171325
Note: That some completion methods might expand environment variables.
13181326

13191327

1320-
Custom completion *:command-completion-custom*
1321-
*:command-completion-customlist*
1322-
*E467* *E468*
1328+
Custom completion ~
1329+
*:command-completion-custom*
1330+
*:command-completion-customlist* *E467* *E468*
13231331
It is possible to define customized completion schemes via the "custom,{func}"
13241332
or the "customlist,{func}" completion argument. The {func} part should be a
13251333
function with the following signature: >
@@ -1364,8 +1372,8 @@ the 'path' option: >
13641372
This example does not work for file names with spaces!
13651373

13661374

1367-
Range handling *E177* *E178* *:command-range*
1368-
*:command-count*
1375+
Range handling ~
1376+
*E177* *E178* *:command-range* *:command-count*
13691377
By default, user-defined commands do not accept a line number range. However,
13701378
it is possible to specify that the command does take a range (the -range
13711379
attribute), or that it takes an arbitrary count value, either in the line
@@ -1399,8 +1407,11 @@ Possible values are:
13991407
-addr=loaded_buffers Range for loaded buffers
14001408
-addr=windows Range for windows
14011409
-addr=tabs Range for tab pages
1410+
-addr=other other kind of range
14021411

1403-
Special cases *:command-bang* *:command-bar*
1412+
1413+
Special cases ~
1414+
*:command-bang* *:command-bar*
14041415
*:command-register* *:command-buffer*
14051416
There are some special cases as well:
14061417

@@ -1418,7 +1429,8 @@ replacement text separately.
14181429
Note that these arguments can be abbreviated, but that is a deprecated
14191430
feature. Use the full name for new scripts.
14201431

1421-
Replacement text
1432+
1433+
Replacement text ~
14221434

14231435
The replacement text for a user defined command is scanned for special escape
14241436
sequences, using <...> notation. Escape sequences are replaced with values

runtime/doc/options.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8290,7 +8290,11 @@ A jump table for the options with a short description can be found at |Q_op|.
82908290
separated by non-keyword characters (white space is preferred).
82918291
Maximum line length is 510 bytes.
82928292

8293-
Unfortunately we currently cannot recommend a file to be used here.
8293+
An English word list was added to this github issue:
8294+
https://github.com/vim/vim/issues/629#issuecomment-443293282
8295+
Unpack thesaurus_pkg.zip, put the thesaurus.txt file somewhere, e.g.
8296+
~/.vim/thesaurus/english.txt, and the 'thesaurus' option to this file
8297+
name.
82948298

82958299
To include a comma in a file name precede it with a backslash. Spaces
82968300
after a comma are ignored, otherwise spaces are included in the file
@@ -8607,8 +8611,9 @@ A jump table for the options with a short description can be found at |Q_op|.
86078611
|t_RV| is set to the escape sequence to request the xterm version
86088612
number, more intelligent detection process runs.
86098613
The "xterm2" value will be set if the xterm version is reported to be
8610-
from 95 to 276. The "sgr" value will be set if the xterm version is
8611-
277 or higher and when Vim detects Mac Terminal.app or iTerm2.
8614+
from 95 to 276. The "sgr" value will be set if Vim detects Mac
8615+
Terminal.app, iTerm2 or mintty, and when the xterm version is 277 or
8616+
higher.
86128617
If you do not want 'ttymouse' to be set to "xterm2" or "sgr"
86138618
automatically, set t_RV to an empty string: >
86148619
:set t_RV=

runtime/doc/terminal.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ sent to the job running in the terminal. For example, to make F1 switch
110110
to Terminal-Normal mode: >
111111
tnoremap <F1> <C-W>N
112112
You can use Esc, but you need to make sure it won't cause other keys to
113-
break: >
113+
break (cursor keys start with an Esc, so they may break): >
114114
tnoremap <Esc> <C-W>N
115115
set notimeout ttimeout timeoutlen=100
116116

0 commit comments

Comments
 (0)