Skip to content

Commit d47d522

Browse files
committed
Update runtime files.
1 parent 37402ed commit d47d522

27 files changed

Lines changed: 403 additions & 142 deletions

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: 1 addition & 1 deletion
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

runtime/doc/options.txt

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

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

81318135
To include a comma in a file name precede it with a backslash. Spaces
81328136
after a comma are ignored, otherwise spaces are included in the file
@@ -8432,8 +8436,9 @@ A jump table for the options with a short description can be found at |Q_op|.
84328436
|t_RV| is set to the escape sequence to request the xterm version
84338437
number, more intelligent detection process runs.
84348438
The "xterm2" value will be set if the xterm version is reported to be
8435-
from 95 to 276. The "sgr" value will be set if the xterm version is
8436-
277 or higher and when Vim detects Mac Terminal.app or iTerm2.
8439+
from 95 to 276. The "sgr" value will be set if Vim detects Mac
8440+
Terminal.app, iTerm2 or mintty, and when the xterm version is 277 or
8441+
higher.
84378442
If you do not want 'ttymouse' to be set to "xterm2" or "sgr"
84388443
automatically, set t_RV to an empty string: >
84398444
: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

runtime/doc/todo.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -38,15 +38,11 @@ browser use: https://github.com/vim/vim/issues/1234
3838
*known-bugs*
3939
-------------------- Known bugs and current work -----------------------
4040

41-
Make ":script 40" edit the script listed with number 40. Actually use
42-
":scriptnames".
43-
44-
Download page: "A 64 bit version" link is wrong, use this one instead:
45-
https://github.com/vim/vim-win32-installer/releases/latest
46-
4741
'incsearch' with :s: (#3321)
4842
- :s/foo using CTRL-G moves to another line, should not happen, or use the
4943
correct line (it uses the last but one line) (Lifepillar, Aug 18, #3345)
44+
- :s@pat/tern@ doesn't include "/" in the pattern. (Takahiro Yoshihara, #3637)
45+
pass delim to do_search() ?
5046
- Also support range: :/foo/,/bar/delete
5147
- Also support for user command, e.g. Cfilter
5248
- :%s/foo should take the first match below the cursor line, unless there
@@ -105,39 +101,41 @@ Terminal emulator window:
105101
- When 'encoding' is not utf-8, or the job is using another encoding, setup
106102
conversions.
107103

108-
Users get used to "function!" because they reload a script file. How about
109-
recognizing the script is re-sourced and not giving an error for the first
110-
function that overwrites. Then one can leave out the exclamation mark and
111-
catch actual errors, overwriting a function from another script.
104+
":function" can now silently overwrite the function from the same script.
105+
Do the same for ":command" ?
112106

113107
Update for German spell files: https://github.com/chrisbra/vim/compare/5e021c990f8817a50d3264782a5...3b27c92f297540761ebbd92d04fb3
114108
(Christian Brabandt, 2018 Nov 4)
115109

116-
Patch for nsis/README.txt and uninstal.txt (Ken Takata, 2018 Nov 17, #3614)
117-
118-
Patch to add commandline completion tests. (Dominique, #3622)
119-
120110
Problem with Visual yank when 'linebreak' and 'showbreak' are set.
121111
Patch with tests, but it's not clear how it is supposed to work. (tommm, 2018
122112
Nov 17)
123113

114+
Patch to add configure flags to skip rtl, farsi and arabic support.
115+
(Diego Carrión, #1867)
116+
124117
Key mapping times out when using a timer in Gvim. (Michael Henry, 2018 Sep 9,
125118
#3417)
126119

127120
Does not build with MinGW out of the box:
128121
- _stat64 is not defined, need to use "struct stat" in vim.h
129122
- WINVER conflict, should use 0x0600 by default?
130123

131-
Adding a fold with a marker in a C file doesn't add the comment /* */ if the
132-
line contains a * somewhere. Patch with a fix (Hirohito Higashi, 2018 Nov 22)
133-
134124
Crash in terminal with long multi-byte sequence. (2018 Nov 17, #3619)
135125
Dominique cannot reproduce. Update Nov 18.
136126
Suggested solution by Yasuhiro Matsumoto, 2018 Nov 18.
137127

138128
Crash when mixing matchadd and substitute()? (Max Christian Pohle, 2018 May
139129
13, #2910) Can't reproduce?
140130

131+
Patch to simplify nsis installer. (Ken Takata, 2018 Sep 24, was #3479)
132+
Now included in #3501, using MUI2. Use the zip file to get the binary files:
133+
https://github.com/vim/vim/files/2475621/nsis-icons.zip
134+
Ready to include now.
135+
136+
Patch to add blob type support. (Yasuhiro Matsumoto, 2018 Nov 26, #3638)
137+
Not done yet.
138+
141139
Errors found with random data:
142140
heap-buffer-overflow in alist_add (#2472)
143141

@@ -147,6 +145,9 @@ mappings no longer work. Create a new terminal for the better solution?
147145
Patch to fix that appending makes items to be "recognized".
148146
(Yegappan, 2018 Nov 23). Reported by Daniel Hahler, #3633.
149147

148+
Patch to define and manipulate signs with functions. Adds sign groups and
149+
priority. (Yegappan Lakshmanan, #3652)
150+
150151
Improve fallback for menu translations, to avoid having to create lots of
151152
files that source the actual file. E.g. menu_da_de -> menu_da
152153
Include part of #3242?
@@ -175,9 +176,6 @@ C syntax: {} inside () causes following {} to be highlighted as error.
175176
More warnings from static analysis:
176177
https://lgtm.com/projects/g/vim/vim/alerts/?mode=list
177178

178-
Quickfix accessing free memory. (Dominique, 2018 Oct 13, #3538)
179-
Yegappan will look into it.
180-
181179
Patch for this: (Aron Widforss, 2018 Oct 13, #3539)
182180
missing a test.
183181
7 Make 'scrolloff' a global-local option, so that it can be different in the
@@ -199,14 +197,12 @@ punctiuation is repeated. (Smylers, 2018 Nov 17, #3621)
199197
":mksession" cannot handle a very long 'runtimepath'. (Timothy Madden, 21 Sep
200198
2018, #3466) Patch from Christian, 2018 Oct 30 (with comments).
201199

200+
Patch to add functions for signs. (Yegappan Lakshmanan, 2018 Nov 24)
201+
obsolete: Patch to add functions for signs. (Christian Brabandt, 2013 Jan 27)
202+
202203
Patch in pull request #2967: Allow white space in sign text. (Ben Jackson)
203204
Test fails in AppVeyor.
204205

205-
Patch to simplify nsis installer. (Ken Takata, 2018 Sep 24, was #3479)
206-
Now included in #3501, using MUI2. Use the zip file to get the binary files:
207-
https://github.com/vim/vim/files/2475621/nsis-icons.zip
208-
Still being worked on.
209-
210206
ml_get error: (Israel Chauca Fuentes, 2018 Oct 17, #3550).
211207

212208
Patch to convert temp file name. (Yasuhiro Matsumoto, #3520)
@@ -227,6 +223,9 @@ Patch to implement 'diffref' option. (#3535)
227223

228224
Patch to fix that bracketed paste remains after Vim exits. (2018 Oct 30, #3579)
229225

226+
Patch for lnext/lprev work in specific cases. (Yegappan Lakshmanan, 2018 Dec
227+
4, #3633)
228+
230229
cursorline highlighting not removed after yanking in Visual mode.
231230
(Matéo Zanibelli, 2018 Oct 30, #3578)
232231
Patch by Christian, Oct 30.
@@ -246,6 +245,9 @@ Memory leak in test_terminal:
246245

247246
gethostbyname() is old, use getaddrinfo() if available. (#3227)
248247

248+
Patch to add match count and current index "3/44" when using "n" command.
249+
(Christian Brabandt, on issue #453). Only when search string was typed?
250+
249251
matchaddpos() gets slow with many matches. Proposal by Rick Howe, 2018 Jul
250252
19.
251253

@@ -288,6 +290,9 @@ Further xdiff changes:
288290

289291
Difference between two regexp engines: #3373
290292

293+
Patch to add ch_listen() (Yasuhiro Matsumoto, 2018 Nov 26, #3639)
294+
What is the practical use for this?
295+
291296
When the last line wraps, selecting with the mouse below that line only
292297
includes the first screen line. (2018 Aug 23, #3368)
293298

@@ -759,9 +764,6 @@ Is it possible to keep the complete menu open when calling complete()?
759764

760765
Memory leak in test97? The string is actually freed. Weird.
761766

762-
Patch to add configure flags to skip rtl, farsi and arabic support.
763-
(Diego Carrión, #1867)
764-
765767
assert_fails() can only check for the first error. Make it possible to have
766768
it catch multiple errors and check all of them.
767769

@@ -1654,8 +1656,6 @@ Or use expand('<sid>')?
16541656

16551657
Patch to make confirm() display colors. (Christian Brabandt, 2012 Nov 9)
16561658

1657-
Patch to add functions for signs. (Christian Brabandt, 2013 Jan 27)
1658-
16591659
Patch to remove flicker from popup menu. (Yasuhiro Matsumoto, 2013 Aug 15)
16601660

16611661
Problem with refresh:always in completion. (Tyler Wade, 2013 Mar 17)

runtime/doc/vim-da.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,13 @@ N
321321
.TP
322322
\-R
323323
Skrivebeskyttet tilstand.
324-
'readonly'-valgmuligheden sættes.
324+
\&'readonly'-valgmuligheden sættes.
325325
Du kan stadig redigere bufferen, men vil være forhindret i
326326
fejlagtigt at overskrive en fil.
327327
Hvis du vil overskrive en fil, så tilføj et
328328
udråbstegn til Ex-kommandoen, som i ":w!".
329329
\-R-tilvalget indebærer også \-n-tilvalget (se ovenfor).
330-
'readonly'-valgmuligheden kan slås fra med ":set noro".
330+
\&'readonly'-valgmuligheden kan slås fra med ":set noro".
331331
Se ":help 'readonly'".
332332
.TP
333333
\-r

runtime/doc/vim-da.UTF-8.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,13 @@ Når N udelades, så åbnes én fanebladsside pr. fil.
321321
.TP
322322
\-R
323323
Skrivebeskyttet tilstand.
324-
'readonly'-valgmuligheden sættes.
324+
\&'readonly'-valgmuligheden sættes.
325325
Du kan stadig redigere bufferen, men vil være forhindret i
326326
fejlagtigt at overskrive en fil.
327327
Hvis du vil overskrive en fil, så tilføj et
328328
udråbstegn til Ex-kommandoen, som i ":w!".
329329
\-R-tilvalget indebærer også \-n-tilvalget (se ovenfor).
330-
'readonly'-valgmuligheden kan slås fra med ":set noro".
330+
\&'readonly'-valgmuligheden kan slås fra med ":set noro".
331331
Se ":help 'readonly'".
332332
.TP
333333
\-r

runtime/ftplugin/xml.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
" Vim filetype plugin file
2-
" Language: xml
3-
" Maintainer: Christian Brabandt <[email protected]>
4-
" Last Changed: May 08th, 2018
5-
" Repository: https://github.com/chrisbra/vim-xml-ftplugin
2+
" Language: xml
3+
" Maintainer: Christian Brabandt <[email protected]>
4+
" Last Changed: Dec 07th, 2018
5+
" Repository: https://github.com/chrisbra/vim-xml-ftplugin
66
" Previous Maintainer: Dan Sharp <dwsharp at users dot sourceforge dot net>
77
" URL: http://dwsharp.users.sourceforge.net/vim/ftplugin
88

0 commit comments

Comments
 (0)