Skip to content

Commit 8c56d1c

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 8ab2fd8 + abd56da commit 8c56d1c

29 files changed

Lines changed: 259 additions & 359 deletions

Filelist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,7 @@ LANG_GEN = \
10171017
runtime/spell/README.txt \
10181018
runtime/spell/??/*.diff \
10191019
runtime/spell/??/main.aap \
1020+
runtime/spell/sr/README_sr.txt \
10201021
runtime/spell/tet/*.diff \
10211022
runtime/spell/tet/main.aap \
10221023
runtime/spell/check/main.aap \

runtime/doc/options.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.2. Last change: 2022 Jun 07
1+
*options.txt* For Vim version 8.2. Last change: 2022 Jun 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3417,8 +3417,9 @@ A jump table for the options with a short description can be found at |Q_op|.
34173417
< This is similar to the default, except that these characters will also
34183418
be used when there is highlighting.
34193419

3420-
For "stl" and "stlnc" single-byte and multibyte characters are
3421-
supported. But double-width characters are not supported.
3420+
For the "stl", "stlnc", "foldopen", "foldclose" and "foldsep" items
3421+
single-byte and multibyte characters are supported. But double-width
3422+
characters are not supported.
34223423

34233424
The highlighting used for these items:
34243425
item highlight group ~
@@ -5049,6 +5050,9 @@ A jump table for the options with a short description can be found at |Q_op|.
50495050
executing macros, registers and other commands that have not been
50505051
typed. Also, updating the window title is postponed. To force an
50515052
update use |:redraw|.
5053+
This may ocasionally cause display errors. It is only meant to be set
5054+
termporarily when performaing an operation where redrawing may cause
5055+
flickering or cause a slow down.
50525056

50535057
*'linebreak'* *'lbr'* *'nolinebreak'* *'nolbr'*
50545058
'linebreak' 'lbr' boolean (default off)

runtime/doc/todo.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 8.2. Last change: 2022 Jun 20
1+
*todo.txt* For Vim version 8.2. Last change: 2022 Jun 23
22

33

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

41-
Prepare for Vim 9.0 release:
42-
- Update the user manual:
43-
- Add more to usr_50.txt as an "advanced section" of usr_41.txt
44-
- Move some from vim9.txt to the user manual? Keep the specification.
41+
Prepare for the Vim 9.0 release:
4542
- Update version9.txt
4643
- Adjust intro message to say "help version9".
4744

@@ -205,12 +202,14 @@ Terminal emulator window:
205202
conversions.
206203

207204
Patches considered for including:
205+
- use ngettext() in a few more places #10606
208206
- Add "-n" option to xxd. #10599
209207
- Support %e and %k in 'errorformat'. #9624
210208
- Add support for "underdouble", "underdot" and "underdash". #9553
211209
- Patch to implement the vimtutor with a plugin: #6414
212210
Was originally written by Felipe Morales.
213211
- Patch to make fillchars global-local. (#5206)
212+
- Version of getchar() that does not move the cursor - #10603
214213

215214
Autoconf: must use autoconf 2.69, later version generates lots of warnings
216215
- try using autoconf 2.71 and fix all "obsolete" warnings
@@ -233,9 +232,6 @@ pass it on with modifications.
233232

234233
Can "CSI nr X" be used instead of outputting spaces? Is it faster? #8002
235234

236-
Problems reported by Valgrind:
237-
Memory leaks in test_channel, in func Test_job_start_fails(). Weird.
238-
239235
With a window height of 6 and 'scrolloff' set to 3, using "j" does not scroll
240236
evenly. (#10545) Need to handle this in scroll_cursor_bot().
241237

@@ -382,6 +378,10 @@ Lua: updating wrong buffer when using newly created, unloaded buffer.
382378

383379
File marks merging has duplicates since 7.4.1925. (Ingo Karkat, #5733)
384380

381+
A syntax plugin cannot use autocommands, it could be sourced from setting
382+
'syntax' in a modeline. Add a function that indicates whethere "secure"
383+
and/or "sandbox" are set.
384+
385385
Problem with auto-formatting - inserting space and putting cursor before added
386386
character. (#6154)
387387

runtime/doc/usr_40.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_40.txt* For Vim version 8.2. Last change: 2022 Jan 03
1+
*usr_40.txt* For Vim version 8.2. Last change: 2022 Jun 20
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -463,6 +463,17 @@ separated) that trigger the command.
463463
The optional [++nested] flag allows for nesting of autocommands (see below),
464464
and finally, {command} is the command to be executed.
465465

466+
When adding an autocommand the already existing ones remain. To avoid adding
467+
the autocommand several time you should use this form: >
468+
469+
:augroup updateDate
470+
: autocmd!
471+
: autocmd BufWritePre * call DateInsert()
472+
:augroup END
473+
474+
This will delete any previously defined autocommand with `:autocmd!` before
475+
defining the new one. Groups are explained later.
476+
466477

467478
EVENTS
468479

runtime/doc/usr_41.txt

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_41.txt* For Vim version 8.2. Last change: 2022 Jun 10
1+
*usr_41.txt* For Vim version 8.2. Last change: 2022 Jun 23
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -1745,9 +1745,10 @@ For further reading see |Dictionaries|.
17451745
==============================================================================
17461746
*41.9* White space
17471747

1748-
Blank lines are allowed and ignored.
1748+
Blank lines are allowed in a script and ignored.
17491749

1750-
Leading whitespace characters (blanks and TABs) are always ignored.
1750+
Leading whitespace characters (blanks and TABs) are ignored, except when using
1751+
|:let-heredoc| without "trim".
17511752

17521753
Trailing whitespace is often ignored, but not always. One command that
17531754
includes it is `map`. You have to watch out for that, it can cause hard to
@@ -1866,13 +1867,16 @@ script executable, and it also works in legacy script: >
18661867
*41.12* Fileformat
18671868

18681869
The end-of-line character depends on the system. For Vim scripts it is
1869-
recommended to always use the Unix fileformat. This also works on any other
1870-
system. That way you can copy your Vim scripts from MS-Windows to Unix and
1871-
they still work. See |:source_crnl|. To be sure it is set right, do this
1872-
before writing the file: >
1873-
1870+
recommended to always use the Unix fileformat. Lines are then separated with
1871+
the Newline character. This also works on any other system. That way you can
1872+
copy your Vim scripts from MS-Windows to Unix and they still work. See
1873+
|:source_crnl|. To be sure it is set right, do this before writing the file:
1874+
>
18741875
:setlocal fileformat=unix
18751876
1877+
When using "dos" fileformat, lines are separated with CR-NL, two characters.
1878+
The CR character causes various problems, better avoid this.
1879+
18761880
==============================================================================
18771881

18781882
Advance information about writing Vim script is in |usr_50.txt|.

runtime/doc/usr_50.txt

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_50.txt* For Vim version 8.2. Last change: 2022 Jun 03
1+
*usr_50.txt* For Vim version 8.2. Last change: 2022 Jun 20
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -116,26 +116,13 @@ we'll explain that further down.
116116
==============================================================================
117117
*50.3* Restoring the view
118118

119-
Sometimes you want to make a change and go back to where the cursor was.
120-
Restoring the relative position would also be nice, so that the same line
121-
appears at the top of the window.
122-
123-
This example yanks the current line, puts it above the first line in the file
124-
and then restores the view: >
125-
126-
map ,p ma"aYHmbgg"aP`bzt`a
127-
128-
What this does: >
129-
ma"aYHmbgg"aP`bzt`a
130-
< ma set mark a at cursor position
131-
"aY yank current line into register a
132-
Hmb go to top line in window and set mark b there
133-
gg go to first line in file
134-
"aP put the yanked line above it
135-
`b go back to top line in display
136-
zt position the text in the window as before
137-
`a go back to saved cursor position
119+
Sometimes you want to jump around, make a change and then go back to the same
120+
position and view. For example to change something in the file header. This
121+
can be done with two functions: >
138122
123+
var view = winsaveview()
124+
# Move around, make changes
125+
winrestview(view)
139126
140127
==============================================================================
141128

runtime/doc/usr_toc.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_toc.txt* For Vim version 8.2. Last change: 2022 Jun 03
1+
*usr_toc.txt* For Vim version 8.2. Last change: 2022 Jun 20
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -46,8 +46,8 @@ Tuning Vim ~
4646

4747
Writing Vim script ~
4848
|usr_50.txt| Advanced Vim script writing
49-
|usr_51.txt| Create a plugin
50-
|usr_52.txt| Write plugins using Vim9 script
49+
|usr_51.txt| Write plugins
50+
|usr_52.txt| Write larger plugins
5151

5252
Making Vim Run ~
5353
|usr_90.txt| Installing Vim

runtime/doc/version9.txt

Lines changed: 64 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ Fuzzy completion support for command line completion using 'wildoptions'.
245245

246246
Fuzzy match support for |:vimgrep|.
247247

248+
Haiku support. |Haiku|
249+
248250
Support for "lsp" channel mode to simplify LSP server RPC communication
249251
|language-server-protocol|.
250252

@@ -256,17 +258,32 @@ report to a file: `:profile dump` . |:profile|
256258
Argument completion support for the |:scriptnames|, |:profile|, |:profdel|,
257259
|:breakadd| and |:breakdel| commands.
258260

259-
Support for using a funcref/lambda value with the 'foldtext', 'completefunc',
260-
'omnifunc', 'operatorfunc', 'thesaurusfunc', 'quickfixtextfunc', 'tagfunc',
261-
'imactivatefunc' and 'imstatusfunc' options.
261+
Support for setting the 'foldtext', 'completefunc', 'omnifunc',
262+
'operatorfunc', 'thesaurusfunc', 'quickfixtextfunc', 'tagfunc',
263+
'imactivatefunc' and 'imstatusfunc' options to a function reference or a
264+
lambda function or a script-local function.
265+
266+
Support directly setting the 'balloonexpr', 'charconvert' 'foldexpr',
267+
'formatexpr', 'includeexpr', 'printexpr', 'patchexpr', 'indentexpr',
268+
'modelineexpr', 'diffexpr' and 'printexpr' options to a script-local function.
269+
270+
Support for configuring the character used to mark the beginning of a fold,
271+
show a closed fold and show a fold separator using "foldopen", "foldclose" and
272+
"foldsep" respectively in 'fillchars'.
262273

263-
Support for using multibyte items with the 'fillchars', 'stl' and 'stlnc'
264-
options.
274+
Support for configuring the character displayed in non existing lines using
275+
"eob" in 'fillchars'.
265276

266-
Support for xchacha20 encryption method 'cryptmethod'
277+
Support for using multibyte items with the "stl", "stlnc", "foldopen",
278+
"foldclose" and "foldsep" items in the 'fillchars' option.
279+
280+
Support for the XChaCha20 encryption method. 'cryptmethod'
267281

268282
Spell check current word with |z=| even when 'spell' is off.
269283

284+
Add "timeout" to 'spellsuggest' to limit the searching time for spell
285+
suggestions.
286+
270287
Support for executing Ex commands in a map without changing the current mode
271288
|<Cmd>| and |<ScriptCmd>|.
272289

@@ -282,7 +299,7 @@ IPv6 support in channels |channel-address|.
282299

283300
Call Vim functions from Lua (vim.call('func', 'arg')).
284301

285-
Add unsigned to 'nrformats'.
302+
Recognize numbers as unsigned when "unsigned" is set in 'nrformats'.
286303

287304
Allow setting underline color in terminal.
288305

@@ -296,7 +313,12 @@ Hide cursor when sleeping using |:sleep!|.
296313

297314
Detect focus events in terminal (|FocusGained| and |FocusLost|).
298315

299-
Highlight leading spaces when 'list' is set (|'listchars'|)
316+
Add "multispace" to 'listchars' to show two or more spaces no matter where
317+
they appear. Add "leadmultispace" to 'listchars' to show two or more leading
318+
spaces. Add "lead" to 'listchars' to set the character used to show leading
319+
spaces.
320+
321+
Make 'listchars', 'virtualedit' and 'thesaurusfunc' global-local options.
300322

301323
Support for looping over a string using |:for|.
302324

@@ -315,24 +337,14 @@ Add "list" to 'breakindentopt' to add additional indent for lines that match
315337
a numbered or bulleted list. Add "column" to 'breakindentopt' to indent
316338
soft-wrapped lines at a specific column.
317339

318-
Add "multispace" to 'listchars' to show two or more spaces no matter where
319-
they appear.
320-
321-
Add |hl-CursorLineSign| and |hl-CursorLineFold| default highlight groups to
340+
Add the |hl-CursorLineSign| and |hl-CursorLineFold| default highlight groups to
322341
adjust sign highlighting for 'cursorline'.
323342

324343
Add the |hl-CurSearch| default highlight group for the current search match.
325344

326-
Support directly setting the 'balloonexpr', 'foldexpr', 'formatexpr',
327-
'includeexpr', 'printexpr', 'patchexpr', 'indentexpr', 'modelineexpr',
328-
'diffexpr' and 'printexpr' options to a script-local function.
329-
330345
Add the 'P' command in visual mode to paste text in visual mode without
331346
yanking the deleted text to the unnamed register.
332347

333-
Add "timeout" to 'spellsuggest' to limit the searching time for spell
334-
suggestions.
335-
336348
Add support for parsing the end line number (%e) and end column number
337349
(%k) using 'errorformat'.
338350

@@ -341,13 +353,45 @@ Add support for logging on Vim startup (|--log|).
341353
Add "/" in 'formatoptions' to stop inserting // when using "o" on a line with
342354
inline comment.
343355

356+
Display every option in a separate line when "!" is used with |:set|.
357+
358+
Add "nostop" to 'backspace' to allow backspacing over the start of insert for
359+
|CTRL-W| and |CTRL-U| also.
360+
361+
Add bell support for the terminal window. ('belloff')
362+
363+
Sync the undo file if 'fsync' is set.
364+
365+
Support excluding the 'runtimepath' and 'packpath' options from a session file
366+
using "skiprtp" in 'sessionoptions'.
367+
368+
Stop insert mode completion without changing text (|i_CTRL-X_CTRL-Z|).
344369

345370
TODO: more
346371

347372
==============================================================================
348373
COMPILE TIME CHANGES *compile-changes-9*
349374

350-
TODO
375+
The following features are now enabled in all the builds:
376+
|+cindent|
377+
|+jumplist|
378+
|+lispindent|
379+
|+num64|
380+
|+smartindent|
381+
|+tag_binary|
382+
|+title|
383+
384+
The following features have been removed. They are either obsolete or didn't
385+
work properly:
386+
- Athena GUI support (use Motif instead)
387+
- EBCDIC support
388+
- Atari MiNT
389+
- Mac Carbon GUI (use MacVim instead)
390+
391+
The rgb.txt file is no longer included, use colors/lists/default.vim instead.
392+
393+
Several source files were split, mainly to make it easier to inspect code
394+
coverage information.
351395

352396
==============================================================================
353397
PATCHES *patches-9* *bug-fixes-9*

runtime/doc/vim9.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*vim9.txt* For Vim version 8.2. Last change: 2022 Jun 10
1+
*vim9.txt* For Vim version 8.2. Last change: 2022 Jun 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1844,13 +1844,6 @@ Or: >
18441844
test_override('ALL', 0)
18451845
18461846
1847-
Import in legacy Vim script ~
1848-
1849-
If an `import` statement is used in legacy Vim script, the script-local "s:"
1850-
namespace will be used for the imported items, even when "s:" is not
1851-
specified.
1852-
1853-
18541847
==============================================================================
18551848

18561849
6. Future work: classes *vim9-classes*

runtime/lang/README.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ More information in the on-line help:
1010
:help 'langmenu'
1111
:help :language
1212

13+
You can find a couple of helper tools for translating menus on github:
14+
https://github.com/adaext/vim-menutrans-helper
15+
1316
The "$VIMRUNTIME/menu.vim" file will search for a menu translation file. This
1417
depends on the value of the "v:lang" variable.
1518

0 commit comments

Comments
 (0)