Skip to content

Commit e0e3917

Browse files
committed
Update runtime files.
1 parent e5ea346 commit e0e3917

32 files changed

Lines changed: 479 additions & 134 deletions

.github/CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ runtime/compiler/dartdevc.vim @dkearns
3131
runtime/compiler/dartdoc.vim @dkearns
3232
runtime/compiler/dartfmt.vim @dkearns
3333
runtime/compiler/eruby.vim @dkearns
34+
runtime/compiler/fbc.vim @dkearns
3435
runtime/compiler/gawk.vim @dkearns
3536
runtime/compiler/gjs.vim @dkearns
3637
runtime/compiler/haml.vim @tpope
@@ -66,12 +67,14 @@ runtime/doc/pi_tar.txt @cecamp
6667
runtime/doc/pi_vimball.txt @cecamp
6768
runtime/doc/pi_zip.txt @cecamp
6869
runtime/ftplugin/awk.vim @dkearns
70+
runtime/ftplugin/basic.vim @dkearns
6971
runtime/ftplugin/bst.vim @tpope
7072
runtime/ftplugin/cfg.vim @chrisbra
7173
runtime/ftplugin/css.vim @dkearns
7274
runtime/ftplugin/cucumber.vim @tpope
7375
runtime/ftplugin/eiffel.vim @dkearns
7476
runtime/ftplugin/eruby.vim @tpope @dkearns
77+
runtime/ftplugin/freebasic.vim @dkearns
7578
runtime/ftplugin/git.vim @tpope
7679
runtime/ftplugin/gitcommit.vim @tpope
7780
runtime/ftplugin/gitconfig.vim @tpope
@@ -93,6 +96,7 @@ runtime/ftplugin/ruby.vim @tpope @dkearns
9396
runtime/ftplugin/sass.vim @tpope
9497
runtime/ftplugin/scss.vim @tpope
9598
runtime/ftplugin/spec.vim @ignatenkobrain
99+
runtime/ftplugin/tidy.vim @dkearns
96100
runtime/ftplugin/tmux.vim @ericpruitt
97101
runtime/ftplugin/typescript.vim @dkearns
98102
runtime/ftplugin/typescriptreact.vim @dkearns
@@ -127,6 +131,7 @@ runtime/syntax/amiga.vim @cecamp
127131
runtime/syntax/asm.vim @dkearns
128132
runtime/syntax/asmh8300.vim @dkearns
129133
runtime/syntax/awk.vim @dkearns
134+
runtime/syntax/basic.vim @dkearns
130135
runtime/syntax/bst.vim @tpope
131136
runtime/syntax/cabal.vim @coot
132137
runtime/syntax/cabalconfig.vim @coot

runtime/compiler/fbc.vim

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
" Vim compiler file
2+
" Compiler: FreeBASIC Compiler
3+
" Maintainer: Doug Kearns <[email protected]>
4+
" Last Change: 2015 Jan 10
5+
6+
if exists("current_compiler")
7+
finish
8+
endif
9+
let current_compiler = "fbc"
10+
11+
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
12+
command -nargs=* CompilerSet setlocal <args>
13+
endif
14+
15+
let s:cpo_save = &cpo
16+
set cpo&vim
17+
18+
CompilerSet makeprg=fbc
19+
CompilerSet errorformat=%-G%.%#Too\ many\ errors\\,\ exiting,
20+
\%f(%l)\ %tarning\ %n(%\\d%\\+):\ %m,
21+
\%E%f(%l)\ error\ %n:\ %m,
22+
\%-Z%p^,
23+
\%-C%.%#,
24+
\%-G%.%#
25+
26+
let &cpo = s:cpo_save
27+
unlet s:cpo_save

runtime/compiler/tidy.vim

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim compiler file
22
" Compiler: HTML Tidy
33
" Maintainer: Doug Kearns <[email protected]>
4-
" Last Change: 2016 Apr 21
4+
" Last Change: 2020 Sep 4
55

66
if exists("current_compiler")
77
finish
@@ -12,8 +12,15 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal
1212
command -nargs=* CompilerSet setlocal <args>
1313
endif
1414

15-
CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %:S
15+
let s:cpo_save = &cpo
16+
set cpo&vim
1617

17-
" foo.html:8:1: Warning: inserting missing 'foobar' element
18-
" foo.html:9:2: Error: <foobar> is not recognized!
19-
CompilerSet errorformat=%f:%l:%c:\ %trror:%m,%f:%l:%c:\ %tarning:%m,%-G%.%#
18+
CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes
19+
CompilerSet errorformat=%f:%l:%c:\ %trror:\ %m,
20+
\%f:%l:%c:\ %tarning:\ %m,
21+
\%f:%l:%c:\ %tnfo:\ %m,
22+
\%f:%l:%c:\ %m,
23+
\%-G%.%#
24+
25+
let &cpo = s:cpo_save
26+
unlet s:cpo_save

runtime/doc/change.txt

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 8.2. Last change: 2020 Nov 21
1+
*change.txt* For Vim version 8.2. Last change: 2021 Jan 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1631,24 +1631,31 @@ default setting is "tcq". You can separate the option letters with commas for
16311631
readability.
16321632

16331633
letter meaning when present in 'formatoptions' ~
1634-
1634+
*fo-t*
16351635
t Auto-wrap text using textwidth
1636+
*fo-c*
16361637
c Auto-wrap comments using textwidth, inserting the current comment
16371638
leader automatically.
1639+
*fo-r*
16381640
r Automatically insert the current comment leader after hitting
16391641
<Enter> in Insert mode.
1642+
*fo-o*
16401643
o Automatically insert the current comment leader after hitting 'o' or
16411644
'O' in Normal mode.
1645+
*fo-q*
16421646
q Allow formatting of comments with "gq".
16431647
Note that formatting will not change blank lines or lines containing
16441648
only the comment leader. A new paragraph starts after such a line,
16451649
or when the comment leader changes.
1650+
*fo-w*
16461651
w Trailing white space indicates a paragraph continues in the next line.
16471652
A line that ends in a non-white character ends a paragraph.
1653+
*fo-a*
16481654
a Automatic formatting of paragraphs. Every time text is inserted or
16491655
deleted the paragraph will be reformatted. See |auto-format|.
16501656
When the 'c' flag is present this only happens for recognized
16511657
comments.
1658+
*fo-n*
16521659
n When formatting text, recognize numbered lists. This actually uses
16531660
the 'formatlistpat' option, thus any kind of list can be used. The
16541661
indent of the text after the number is used for the next line. The
@@ -1659,6 +1666,7 @@ n When formatting text, recognize numbered lists. This actually uses
16591666
1. the first item
16601667
wraps
16611668
2. the second item
1669+
< *fo-2*
16621670
2 When formatting text, use the indent of the second line of a paragraph
16631671
for the rest of the paragraph, instead of the indent of the first
16641672
line. This supports paragraphs in which the first line has a
@@ -1668,36 +1676,46 @@ n When formatting text, recognize numbered lists. This actually uses
16681676
second line of the same paragraph
16691677
third line.
16701678
< This also works inside comments, ignoring the comment leader.
1679+
*fo-v*
16711680
v Vi-compatible auto-wrapping in insert mode: Only break a line at a
16721681
blank that you have entered during the current insert command. (Note:
16731682
this is not 100% Vi compatible. Vi has some "unexpected features" or
16741683
bugs in this area. It uses the screen column instead of the line
16751684
column.)
1685+
*fo-b*
16761686
b Like 'v', but only auto-wrap if you enter a blank at or before
16771687
the wrap margin. If the line was longer than 'textwidth' when you
16781688
started the insert, or you do not enter a blank in the insert before
16791689
reaching 'textwidth', Vim does not perform auto-wrapping.
1690+
*fo-l*
16801691
l Long lines are not broken in insert mode: When a line was longer than
16811692
'textwidth' when the insert command started, Vim does not
16821693
automatically format it.
1694+
*fo-m*
16831695
m Also break at a multibyte character above 255. This is useful for
16841696
Asian text where every character is a word on its own.
1697+
*fo-M*
16851698
M When joining lines, don't insert a space before or after a multibyte
16861699
character. Overrules the 'B' flag.
1700+
*fo-B*
16871701
B When joining lines, don't insert a space between two multibyte
16881702
characters. Overruled by the 'M' flag.
1703+
*fo-1*
16891704
1 Don't break a line after a one-letter word. It's broken before it
16901705
instead (if possible).
1706+
*fo-]*
16911707
] Respect textwidth rigorously. With this flag set, no line can be
16921708
longer than textwidth, unless line-break-prohibition rules make this
16931709
impossible. Mainly for CJK scripts and works only if 'encoding' is
16941710
"utf-8".
1711+
*fo-j*
16951712
j Where it makes sense, remove a comment leader when joining lines. For
16961713
example, joining:
16971714
int i; // the index ~
16981715
// in the list ~
16991716
Becomes:
17001717
int i; // the index in the list ~
1718+
*fo-p*
17011719
p Don't break lines at single spaces that follow periods. This is
17021720
intended to complement 'joinspaces' and |cpo-J|, for prose with
17031721
sentences separated by two spaces. For example, with 'textwidth' set

runtime/doc/eval.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.2. Last change: 2021 Jan 21
1+
*eval.txt* For Vim version 8.2. Last change: 2021 Jan 22
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2085,7 +2085,7 @@ v:null An empty String. Used to put "null" in JSON. See
20852085
*v:numbermax* *numbermax-variable*
20862086
v:numbermax Maximum value of a number.
20872087

2088-
*v:numbermix* *numbermix-variable*
2088+
*v:numbermin* *numbermin-variable*
20892089
v:numbermin Minimum value of a number (negative)
20902090

20912091
*v:numbersize* *numbersize-variable*

runtime/doc/filetype.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*filetype.txt* For Vim version 8.2. Last change: 2020 Sep 28
1+
*filetype.txt* For Vim version 8.2. Last change: 2021 Jan 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/popup.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*popup.txt* For Vim version 8.2. Last change: 2020 Nov 07
1+
*popup.txt* For Vim version 8.2. Last change: 2021 Jan 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/syntax.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 8.2. Last change: 2020 Dec 17
1+
*syntax.txt* For Vim version 8.2. Last change: 2021 Jan 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/tags

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6431,7 +6431,26 @@ fname_new-variable eval.txt /*fname_new-variable*
64316431
fname_out-variable eval.txt /*fname_out-variable*
64326432
fnameescape() eval.txt /*fnameescape()*
64336433
fnamemodify() eval.txt /*fnamemodify()*
6434+
fo-1 change.txt /*fo-1*
6435+
fo-2 change.txt /*fo-2*
6436+
fo-B change.txt /*fo-B*
6437+
fo-M change.txt /*fo-M*
6438+
fo-] change.txt /*fo-]*
6439+
fo-a change.txt /*fo-a*
6440+
fo-b change.txt /*fo-b*
6441+
fo-c change.txt /*fo-c*
6442+
fo-j change.txt /*fo-j*
6443+
fo-l change.txt /*fo-l*
6444+
fo-m change.txt /*fo-m*
6445+
fo-n change.txt /*fo-n*
6446+
fo-o change.txt /*fo-o*
6447+
fo-p change.txt /*fo-p*
6448+
fo-q change.txt /*fo-q*
6449+
fo-r change.txt /*fo-r*
6450+
fo-t change.txt /*fo-t*
64346451
fo-table change.txt /*fo-table*
6452+
fo-v change.txt /*fo-v*
6453+
fo-w change.txt /*fo-w*
64356454
fold-behavior fold.txt /*fold-behavior*
64366455
fold-colors fold.txt /*fold-colors*
64376456
fold-commands fold.txt /*fold-commands*
@@ -8271,6 +8290,8 @@ null vim9.txt /*null*
82718290
null-variable eval.txt /*null-variable*
82728291
number_relativenumber options.txt /*number_relativenumber*
82738292
numbered-function eval.txt /*numbered-function*
8293+
numbermax-variable eval.txt /*numbermax-variable*
8294+
numbermin-variable eval.txt /*numbermin-variable*
82748295
numbersize-variable eval.txt /*numbersize-variable*
82758296
o insert.txt /*o*
82768297
o_CTRL-V motion.txt /*o_CTRL-V*
@@ -9847,6 +9868,8 @@ v:mouse_win eval.txt /*v:mouse_win*
98479868
v:mouse_winid eval.txt /*v:mouse_winid*
98489869
v:none eval.txt /*v:none*
98499870
v:null eval.txt /*v:null*
9871+
v:numbermax eval.txt /*v:numbermax*
9872+
v:numbermin eval.txt /*v:numbermin*
98509873
v:numbersize eval.txt /*v:numbersize*
98519874
v:oldfiles eval.txt /*v:oldfiles*
98529875
v:operator eval.txt /*v:operator*
@@ -10089,6 +10112,7 @@ vim8 version8.txt /*vim8*
1008910112
vim9 vim9.txt /*vim9*
1009010113
vim9-classes vim9.txt /*vim9-classes*
1009110114
vim9-const vim9.txt /*vim9-const*
10115+
vim9-curly vim9.txt /*vim9-curly*
1009210116
vim9-declaration vim9.txt /*vim9-declaration*
1009310117
vim9-declarations usr_46.txt /*vim9-declarations*
1009410118
vim9-differences vim9.txt /*vim9-differences*

runtime/doc/todo.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 8.2. Last change: 2021 Jan 17
1+
*todo.txt* For Vim version 8.2. Last change: 2021 Jan 25
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -41,6 +41,7 @@ browser use: https://github.com/vim/vim/issues/1234
4141
test_autocmd failure in Windows: Something wrong with system()?
4242

4343
Vim9 - Make everything work:
44+
- Add a test for profiling with nested function calls and lambda.
4445
- Expand `=expr` in :next, :argedit, :argadd, :argdelete, :drop
4546
- Expand `=expr` in :vimgrep, :vimgrepadd, :lvimgrep, :lvimgrepadd
4647
- Expand `=expr` in :mkspell
@@ -50,28 +51,24 @@ Vim9 - Make everything work:
5051
- Using a script variable inside a :def function doesn't work if the variable
5152
is inside a block, see Test_nested_function(). Should it work?
5253
- give error for variable name:
53-
let p = function('NoSuchFunc')
54+
var p = function('NoSuchFunc')
5455
- Make closures work better:
5556
- Create closure in a loop. Need to make a list of them.
5657
- If a :def function is called with a function reference, compile it to get
5758
the function type.
5859
def Filter(x: string, Cond: func(string): bool)
5960
Filter(x, (v) => v =~ '^b')
6061
- Make inline function work, to be used as a funcref:
61-
let Ref = (arg: type): type => {
62+
var Ref = (arg: type): type => {
6263
statement
6364
return expr
6465
}
65-
let Ref = (arg: type) => {
66+
var Ref = (arg: type) => {
6667
statement
6768
statement
6869
}
69-
- Does this work already: can use func as reference:
70-
def SomeFunc() ...
71-
map(list, SomeFunc)
7270
- For builtin functions using tv_get_string*() use check_for_string() to be
7371
more strict about the argument type.
74-
- Possible memory leaks in test_vim9_func
7572
- Implement :lockvar and :unlockvar. How about local variables? Perhaps only
7673
allow this for global variables. Use :final or :const otherwise.
7774
- Allow function names that will be script-local to start with lower case
@@ -86,10 +83,10 @@ Vim9 - Make everything work:
8683
- Need the equivalent of get_lval() and set_var_lval() to implement assignment
8784
to nested list and dict members.
8885
- Assignment to dict doesn't work:
89-
let ret: dict<string> = #{}
86+
var ret: dict<string> = #{}
9087
ret[i] = string(i)
9188
- Appending to dict item doesn't work:
92-
let d[i] ..= value
89+
var d[i] ..= value
9390
- Using ".." at script level doesn't convert arguments to a string.
9491
- Compile replacement of :s command: s/pat/\=expr/
9592
- Compile redir to local variable: var_redir_start().
@@ -144,7 +141,6 @@ Also for Vim9:
144141
- Make debugging work - at least per function. Need to recompile a function
145142
to step through it line-by-line? Evaluate the stack and variables on the
146143
stack?
147-
- Make profiling work - Add ISN_PROFILE instructions after every line?
148144
- List commands when 'verbose' is set or :verbose is used.
149145

150146
Further Vim9 improvements, possibly after launch:
@@ -187,6 +183,10 @@ Popup windows:
187183
- Figure out the size and position better if wrapping inserts indent
188184

189185
Text properties:
186+
- Popup attached to text property stays visible when text is no longer
187+
visible. (#7736)
188+
- Popup attached to text property stays visible when text is deleted with
189+
"cc". (#7737) "C" works OK.
190190
- :goto does not go to the right place when text properties are present.
191191
(#5930)
192192
- "cc" does not call inserted_bytes(). (Axel Forsman, #5763)
@@ -282,7 +282,7 @@ Patch to implement the vimtutor with a plugin: #6414
282282
Was originally written by Felipe Morales.
283283

284284
Adding "10" to 'spellsuggest' causes spell suggestions to become very slow.
285-
(#4087)
285+
(#4087) Did patch 8.2.2379 help?
286286

287287
Patch to find Python dll using registry key. (#7540)
288288

0 commit comments

Comments
 (0)