Skip to content

Commit 7c1e936

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 7bc4fe1 + 482d2f3 commit 7c1e936

89 files changed

Lines changed: 3790 additions & 2076 deletions

Some content is hidden

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

.github/CODEOWNERS_vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,3 +236,4 @@ src/libvterm/ @leonerd
236236
src/po/de.po @chrisbra
237237
src/po/eo.po @dpelle
238238
src/po/fr.po @dpelle
239+
src/xxd/ @jnweiger

Filelist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ SRC_ALL = \
134134
src/spell.h \
135135
src/spellfile.c \
136136
src/spellsuggest.c \
137+
src/strings.c \
137138
src/structs.h \
138139
src/syntax.c \
139140
src/tag.c \
@@ -296,6 +297,7 @@ SRC_ALL = \
296297
src/proto/spell.pro \
297298
src/proto/spellfile.pro \
298299
src/proto/spellsuggest.pro \
300+
src/proto/strings.pro \
299301
src/proto/syntax.pro \
300302
src/proto/tag.pro \
301303
src/proto/term.pro \

runtime/doc/autocmd.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 8.2. Last change: 2021 May 29
1+
*autocmd.txt* For Vim version 8.2. Last change: 2021 Jul 02
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -681,8 +681,10 @@ CursorHoldI Just like CursorHold, but in Insert mode.
681681
CursorMoved After the cursor was moved in Normal or Visual
682682
mode. Also when the text of the cursor line
683683
has been changed, e.g., with "x", "rx" or "p".
684-
Not triggered when there is typeahead or when
685-
an operator is pending.
684+
Not triggered when there is typeahead, when
685+
an operator is pending or when moving to
686+
another window while remaining at the same
687+
cursor position.
686688
For an example see |match-parens|.
687689
Note: This can not be skipped with
688690
`:noautocmd`.

runtime/doc/eval.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1588,7 +1588,17 @@ The lambda expression is also useful for Channel, Job and timer: >
15881588
Handler called
15891589
Handler called
15901590

1591-
Note how execute() is used to execute an Ex command. That's ugly though.
1591+
Note that it is possible to cause memory to be used and not freed if the
1592+
closure is referenced by the context it depends on: >
1593+
function Function()
1594+
let x = 0
1595+
let F = {-> x}
1596+
endfunction
1597+
The closure uses "x" from the function scope, and "F" in that same scope
1598+
refers to the closure. This cycle results in the memory not being freed.
1599+
Recommendation: don't do this.
1600+
1601+
Notice how execute() is used to execute an Ex command. That's ugly though.
15921602
In Vim9 script you can use a command block, see |inline-function|.
15931603

15941604
Lambda expressions have internal names like '<lambda>42'. If you get an error
@@ -1963,7 +1973,8 @@ v:fcs_choice What should happen after a |FileChangedShell| event was
19631973
Vim behaves like it is empty, there is no warning message.
19641974

19651975
*v:fname* *fname-variable*
1966-
v:fname The file name set by 'includeexpr'. Empty otherwise.
1976+
v:fname When evaluating 'includeexpr': the file name that was
1977+
detected. Empty otherwise.
19671978

19681979
*v:fname_in* *fname_in-variable*
19691980
v:fname_in The name of the input file. Valid while evaluating:
@@ -5815,7 +5826,7 @@ getmousepos() *getmousepos()*
58155826
are zero.
58165827

58175828
When the position is after the text then "column" is the
5818-
length of the text in bytes.
5829+
length of the text in bytes plus one.
58195830

58205831
If the mouse is over a popup window then that window is used.
58215832

@@ -8933,6 +8944,10 @@ screenpos({winid}, {lnum}, {col}) *screenpos()*
89338944
The "curscol" value is where the cursor would be placed. For
89348945
a Tab it would be the same as "endcol", while for a double
89358946
width character it would be the same as "col".
8947+
The |conceal| feature is ignored here, the column numbers are
8948+
as if 'conceallevel' is zero. You can set the cursor to the
8949+
right position and use |screencol()| to get the value with
8950+
|conceal| taken into account.
89368951

89378952
Can also be used as a |method|: >
89388953
GetWinid()->screenpos(lnum, col)
@@ -11904,6 +11919,7 @@ diff Compiled with |vimdiff| and 'diff' support.
1190411919
digraphs Compiled with support for digraphs.
1190511920
directx Compiled with support for DirectX and 'renderoptions'.
1190611921
dnd Compiled with support for the "~ register |quote_~|.
11922+
drop_file Compiled with |drop_file| support.
1190711923
ebcdic Compiled on a machine with ebcdic character set.
1190811924
emacs_tags Compiled with support for Emacs tags.
1190911925
eval Compiled with expression evaluation support. Always

runtime/doc/gui.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*gui.txt* For Vim version 8.2. Last change: 2021 May 01
1+
*gui.txt* For Vim version 8.2. Last change: 2021 Jun 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -412,7 +412,8 @@ Mouse mapping with modifiers does not work for modeless selection.
412412
3.7 Drag and drop *drag-n-drop*
413413

414414
You can drag and drop one or more files into the Vim window, where they will
415-
be opened as if a |:drop| command was used.
415+
be opened as if a |:drop| command was used. You can check if this is
416+
supported with the *drop_file* feature: `has('drop_file')`.
416417

417418
If you hold down Shift while doing this, Vim changes to the first dropped
418419
file's directory. If you hold Ctrl Vim will always split a new window for the

runtime/doc/insert.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*insert.txt* For Vim version 8.2. Last change: 2020 Oct 16
1+
*insert.txt* For Vim version 8.2. Last change: 2021 Jul 05
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1073,7 +1073,8 @@ On the second invocation the arguments are:
10731073

10741074
The function must return a List with the matching words. These matches
10751075
usually include the "a:base" text. When there are no matches return an empty
1076-
List.
1076+
List. Note that the cursor may have moved since the first invocation, the
1077+
text may have been changed.
10771078

10781079
In order to return more information than the matching words, return a Dict
10791080
that contains the List. The Dict can have these items:

runtime/doc/pattern.txt

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -929,29 +929,44 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
929929
\%23l Matches in a specific line.
930930
\%<23l Matches above a specific line (lower line number).
931931
\%>23l Matches below a specific line (higher line number).
932+
\%.l Matches at the cursor line.
933+
\%<.l Matches above the cursor line.
934+
\%>.l Matches below the cursor line.
932935
These three can be used to match specific lines in a buffer. The "23"
933936
can be any line number. The first line is 1.
934937
WARNING: When inserting or deleting lines Vim does not automatically
935938
update the matches. This means Syntax highlighting quickly becomes
936-
wrong.
939+
wrong. Also when refering to the cursor position (".") and
940+
the cursor moves the display isn't updated for this change. An update
941+
is done when using the |CTRL-L| command (the whole screen is updated).
937942
Example, to highlight the line where the cursor currently is: >
938-
:exe '/\%' . line(".") . 'l.*'
943+
:exe '/\%' . line(".") . 'l'
944+
< Alternatively use: >
945+
/\%.l
939946
< When 'hlsearch' is set and you move the cursor around and make changes
940947
this will clearly show when the match is updated or not.
941948

942949
*/\%c* */\%>c* */\%<c*
943950
\%23c Matches in a specific column.
944951
\%<23c Matches before a specific column.
945952
\%>23c Matches after a specific column.
953+
\%.c Matches at the cursor column.
954+
\%<.c Matches before the cursor column.
955+
\%>.c Matches after the cursor column.
946956
These three can be used to match specific columns in a buffer or
947957
string. The "23" can be any column number. The first column is 1.
948958
Actually, the column is the byte number (thus it's not exactly right
949959
for multibyte characters).
950960
WARNING: When inserting or deleting text Vim does not automatically
951961
update the matches. This means Syntax highlighting quickly becomes
952-
wrong.
962+
wrong. Also when refering to the cursor position (".") and
963+
the cursor moves the display isn't updated for this change. An update
964+
is done when using the |CTRL-L| command (the whole screen is updated).
965+
953966
Example, to highlight the column where the cursor currently is: >
954967
:exe '/\%' . col(".") . 'c'
968+
< Alternatively use: >
969+
/\%.c
955970
< When 'hlsearch' is set and you move the cursor around and make changes
956971
this will clearly show when the match is updated or not.
957972
Example for matching a single byte in column 44: >
@@ -962,6 +977,9 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
962977
\%23v Matches in a specific virtual column.
963978
\%<23v Matches before a specific virtual column.
964979
\%>23v Matches after a specific virtual column.
980+
\%.v Matches at the current virtual column.
981+
\%<.v Matches before the current virtual column.
982+
\%>.v Matches after the current virtual column.
965983
These three can be used to match specific virtual columns in a buffer
966984
or string. When not matching with a buffer in a window, the option
967985
values of the current window are used (e.g., 'tabstop').
@@ -971,13 +989,18 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
971989
one screen character.
972990
WARNING: When inserting or deleting text Vim does not automatically
973991
update highlighted matches. This means Syntax highlighting quickly
974-
becomes wrong.
992+
becomes wrong. Also when refering to the cursor position (".") and
993+
the cursor moves the display isn't updated for this change. An update
994+
is done when using the |CTRL-L| command (the whole screen is updated).
975995
Example, to highlight all the characters after virtual column 72: >
976996
/\%>72v.*
977997
< When 'hlsearch' is set and you move the cursor around and make changes
978998
this will clearly show when the match is updated or not.
979999
To match the text up to column 17: >
9801000
/^.*\%17v
1001+
< To match all characters after the current virtual column (where the
1002+
cursor is): >
1003+
/\%>.v.*
9811004
< Column 17 is not included, because this is a |/zero-width| match. To
9821005
include the column use: >
9831006
/^.*\%17v.

runtime/doc/repeat.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -846,7 +846,7 @@ About the additional commands in debug mode:
846846
":cont", ":next", ":finish" (or shorter).
847847
*vim9-debug*
848848
When debugging a compiled :def function, "step" will stop before every
849-
executed line, not every ingle nstruction. Thus it works mostly like a not
849+
executed line, not every single instruction. Thus it works mostly like a not
850850
compiled function. Access to local variables is limited you can use: >
851851
echo varname
852852
But not much else.

runtime/doc/sponsor.txt

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*sponsor.txt* For Vim version 8.2. Last change: 2008 Jun 21
1+
*sponsor.txt* For Vim version 8.2. Last change: 2021 Jul 07
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -11,9 +11,8 @@ Fixing bugs and adding new features takes a lot of time and effort. To show
1111
your appreciation for the work and motivate Bram and others to continue
1212
working on Vim please send a donation.
1313

14-
Since Bram is back to a paid job the money will now be used to help children
15-
in Uganda. See |uganda|. But at the same time donations increase Bram's
16-
motivation to keep working on Vim!
14+
Since Bram does not need the money it will be used to help children in Uganda,
15+
see |uganda|. Donations increase Bram's motivation to keep working on Vim!
1716

1817
For the most recent information about sponsoring look on the Vim web site:
1918

@@ -74,19 +73,6 @@ Other methods See |iccf-donations|.
7473
amount you transferred if you want to vote for features and
7574
show others you are a registered Vim user or sponsor.
7675

77-
Cash Small amounts can be sent with ordinary mail. Put something
78-
around the money, so that it's not noticeable from the
79-
outside. Mention your e-mail address if you want to vote for
80-
features and show others you are a registered Vim user or
81-
sponsor.
82-
83-
You can use this permanent address:
84-
Bram Moolenaar
85-
Finsterruetihof 1
86-
8134 Adliswil
87-
Switzerland
88-
89-
9076

9177
QUESTIONS AND ANSWERS *sponsor-faq* *register-faq*
9278

runtime/doc/syntax.txt

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 8.2. Last change: 2021 Jun 22
1+
*syntax.txt* For Vim version 8.2. Last change: 2021 Jul 02
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1420,11 +1420,17 @@ To select syntax highlighting file for Euphoria, as well as for
14201420
auto-detecting the *.e and *.E file extensions as Euphoria file type,
14211421
add the following line to your startup file: >
14221422
1423-
:let filetype_euphoria = "euphoria3"
1423+
:let g:filetype_euphoria = "euphoria3"
14241424
14251425
< or >
14261426
1427-
:let filetype_euphoria = "euphoria4"
1427+
:let g:filetype_euphoria = "euphoria4"
1428+
1429+
Elixir and Euphoria share the *.ex file extension. If the filetype is
1430+
specifically set as Euphoria with the g:filetype_euphoria variable, or the
1431+
file is determined to be Euphoria based on keywords in the file, then the
1432+
filetype will be set as Euphoria. Otherwise, the filetype will default to
1433+
Elixir.
14281434

14291435

14301436
ERLANG *erlang.vim* *ft-erlang-syntax*
@@ -1442,6 +1448,22 @@ To enable highlighting some special atoms, put this in your vimrc: >
14421448
:let g:erlang_highlight_special_atoms = 1
14431449
14441450
1451+
ELIXIR *elixir.vim* *ft-elixir-syntax*
1452+
1453+
Elixir is a dynamic, functional language for building scalable and maintainable
1454+
applications.
1455+
1456+
The following file extensions are auto-detected as Elixir file types:
1457+
1458+
*.ex, *.exs, *.eex, *.leex, *.lock
1459+
1460+
Elixir and Euphoria share the *.ex file extension. If the filetype is
1461+
specifically set as Euphoria with the g:filetype_euphoria variable, or the
1462+
file is determined to be Euphoria based on keywords in the file, then the
1463+
filetype will be set as Euphoria. Otherwise, the filetype will default to
1464+
Elixir.
1465+
1466+
14451467
FLEXWIKI *flexwiki.vim* *ft-flexwiki-syntax*
14461468

14471469
FlexWiki is an ASP.NET-based wiki package available at http://www.flexwiki.com

0 commit comments

Comments
 (0)