forked from aniani/vim
patch 8.2.5000: no patch for documentation updates
Problem: No patch for documentation updates. Solution: Update documentation files.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
*builtin.txt* For Vim version 8.2. Last change: 2022 May 10
|
*builtin.txt* For Vim version 8.2. Last change: 2022 May 21
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
*indent.txt* For Vim version 8.2. Last change: 2022 Apr 07
|
*indent.txt* For Vim version 8.2. Last change: 2022 May 21
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
*options.txt* For Vim version 8.2. Last change: 2022 May 07
|
*options.txt* For Vim version 8.2. Last change: 2022 May 21
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
*os_win32.txt* For Vim version 8.2. Last change: 2022 Feb 14
|
*os_win32.txt* For Vim version 8.2. Last change: 2022 May 22
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by George Reilly
|
VIM REFERENCE MANUAL by George Reilly
|
||||||
@@ -42,6 +42,11 @@ The GUI version was made by George V. Reilly and Robert Webb.
|
|||||||
|
|
||||||
For compiling see "src/INSTALLpc.txt". *win32-compiling*
|
For compiling see "src/INSTALLpc.txt". *win32-compiling*
|
||||||
|
|
||||||
|
*WSL*
|
||||||
|
When using Vim on WSL (Windows Subsystem for Linux) the remarks here do not
|
||||||
|
apply, `has('win32')` will return false then. In case you need to know
|
||||||
|
whether Vim is running on WSL you can use `exists('$WSLENV')`.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Known problems *win32-problems*
|
1. Known problems *win32-problems*
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
*todo.txt* For Vim version 8.2. Last change: 2022 May 21
|
*todo.txt* For Vim version 8.2. Last change: 2022 May 22
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -38,20 +38,14 @@ browser use: https://github.com/vim/vim/issues/1234
|
|||||||
*known-bugs*
|
*known-bugs*
|
||||||
-------------------- Known bugs and current work -----------------------
|
-------------------- Known bugs and current work -----------------------
|
||||||
|
|
||||||
Make :defcompile accept a function argument, like :disassemble
|
Prepare for Vim 9.0 release:
|
||||||
Useful for global functions.
|
|
||||||
|
|
||||||
Once Vim9 is stable:
|
|
||||||
- Use Vim9 for more runtime files.
|
- Use Vim9 for more runtime files.
|
||||||
- Check code coverage, add more tests if needed.
|
- Check Vim9 code coverage, add more tests if needed.
|
||||||
vim9instr.c
|
vim9instr.c
|
||||||
vim9script.c
|
vim9script.c
|
||||||
vim9type.c
|
vim9type.c
|
||||||
- Inlude new set of colors: #9795
|
|
||||||
- Adjust intro message to say "help version9".
|
- Adjust intro message to say "help version9".
|
||||||
|
|
||||||
Graduate FEAT_CINDENT and FEAT_SMARTINDENT ?
|
|
||||||
|
|
||||||
Update the user manual:
|
Update the user manual:
|
||||||
- Update usr_41.txt for Vim9 script
|
- Update usr_41.txt for Vim9 script
|
||||||
- Fill usr_50.txt as an "advanced section" of usr_41.txt
|
- Fill usr_50.txt as an "advanced section" of usr_41.txt
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
*usr_52.txt* For Vim version 8.2. Last change: 2022 May 16
|
*usr_52.txt* For Vim version 8.2. Last change: 2022 May 21
|
||||||
|
|
||||||
VIM USER MANUAL - by Bram Moolenaar
|
VIM USER MANUAL - by Bram Moolenaar
|
||||||
|
|
||||||
@@ -113,36 +113,33 @@ Although it's shorter to do: >
|
|||||||
Legacy Vim script only checks types at runtime, when the code is executed.
|
Legacy Vim script only checks types at runtime, when the code is executed.
|
||||||
And it's permissive, often a computation gives an unexpected value instead of
|
And it's permissive, often a computation gives an unexpected value instead of
|
||||||
reporting an error. Thus you can define a function and think it's fine, but
|
reporting an error. Thus you can define a function and think it's fine, but
|
||||||
see a problem only later when it is called: >
|
notice a problem only later when the function is called: >
|
||||||
let s:collected = ''
|
func Concatenate(base, add)
|
||||||
func ExtendAndReturn(add)
|
return a:base + a:add
|
||||||
let s:collected += a:add
|
|
||||||
return s:collected
|
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
Can you spot the error? Try this: >
|
Can you spot the error? Try this: >
|
||||||
echo ExtendAndReturn('text')
|
echo Concatenate('base', 'text')
|
||||||
And you'll see zero. Why? Because in legacy Vim script "+=" will convert the
|
And you'll see zero. Why? Because in legacy Vim script "+" will convert the
|
||||||
arguments to numbers, and any string without a number results in zero!
|
arguments to numbers, and any string without a number results in zero! That's
|
||||||
|
not what you expected.
|
||||||
|
|
||||||
With `:def` the type checking happens when compiling the function. For that
|
With `:def` the type checking happens when compiling the function. You need
|
||||||
you need to specify the argument types and the return type. Also notice that
|
to specify the argument types and the return type to make that possible. Also
|
||||||
the argument is used without the "a:" prefix: >
|
notice that the argument names are used without the "a:" prefix: >
|
||||||
let s:collected = ''
|
def Concatenate(base: string, add: string): string
|
||||||
def ExtendAndReturn(add: string): string
|
return base + add
|
||||||
s:collected += add
|
|
||||||
return s:collected
|
|
||||||
enddef
|
enddef
|
||||||
disassemble ExtendAndReturn
|
defcompile Concatenate
|
||||||
|
|
||||||
Here we use `:disassemble` to do the compilation right away, without it the
|
Here we use `:defcompile` to do the compilation right away, without it the
|
||||||
compilation would happen when the function is called. Vim will tell you what
|
compilation would happen when the function is first called. Vim will tell you
|
||||||
you did wrong: >
|
what you did wrong: >
|
||||||
E1051: Wrong argument type for +
|
E1051: Wrong argument type for +
|
||||||
|
|
||||||
Side note: here the context is legacy script, when using Vim9 script you would
|
Side note: here the context is legacy script. When using Vim9 script you
|
||||||
put `:defcompile` at the end of the script to check for errors in the
|
would put `:defcompile` at the end of the script to check for errors in all
|
||||||
functions defined in it.
|
the functions defined in it.
|
||||||
|
|
||||||
Vim9 script is strict, it uses the "+" operator only for numbers and floats.
|
Vim9 script is strict, it uses the "+" operator only for numbers and floats.
|
||||||
For string concatenation ".." must be used. This avoids mistakes and avoids
|
For string concatenation ".." must be used. This avoids mistakes and avoids
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
*various.txt* For Vim version 8.2. Last change: 2022 Apr 03
|
*various.txt* For Vim version 8.2. Last change: 2022 May 21
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
*vim9.txt* For Vim version 8.2. Last change: 2022 May 13
|
*vim9.txt* For Vim version 8.2. Last change: 2022 May 21
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@@ -734,6 +734,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 */
|
||||||
|
/**/
|
||||||
|
5000,
|
||||||
/**/
|
/**/
|
||||||
4999,
|
4999,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user