aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-02-28 09:34:27 +0100
committerGitHub <noreply@github.com>2023-02-28 09:34:27 +0100
commit66c384d4e806a5e8de53bc57a05f0ddd8c8a9d1c (patch)
tree0744198130c837d09161138c1a60f6a4a5c47335 /runtime/doc
parent8acb3d742ce68adadf1def9e1d1bb5bfd671988c (diff)
downloadrneovim-66c384d4e806a5e8de53bc57a05f0ddd8c8a9d1c.tar.gz
rneovim-66c384d4e806a5e8de53bc57a05f0ddd8c8a9d1c.tar.bz2
rneovim-66c384d4e806a5e8de53bc57a05f0ddd8c8a9d1c.zip
vim-patch:partial:dd60c365cd26 (#22437)
vim-patch:partial:dd60c365cd26 Update runtime files https://github.com/vim/vim/commit/dd60c365cd2630794be84d63c4fe287124a30b97 Co-authored-by: Bram Moolenaar <Bram@vim.org> Skip: eval.txt, repeat.txt (needs `getscriptinfo()`)
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/builtin.txt5
-rw-r--r--runtime/doc/change.txt6
-rw-r--r--runtime/doc/map.txt6
-rw-r--r--runtime/doc/sign.txt12
-rw-r--r--runtime/doc/syntax.txt20
5 files changed, 31 insertions, 18 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 3ff4e47a45..b74e30db09 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -2126,8 +2126,7 @@ extend({expr1}, {expr2} [, {expr3}]) *extend()*
extendnew({expr1}, {expr2} [, {expr3}]) *extendnew()*
Like |extend()| but instead of adding items to {expr1} a new
List or Dictionary is created and returned. {expr1} remains
- unchanged. Items can still be changed by {expr2}, if you
- don't want that use |deepcopy()| first.
+ unchanged.
feedkeys({string} [, {mode}]) *feedkeys()*
@@ -8725,6 +8724,8 @@ timer_start({time}, {callback} [, {options}])
{time} is the waiting time in milliseconds. This is the
minimum time before invoking the callback. When the system is
busy or Vim is not waiting for input the time will be longer.
+ Zero can be used to execute the callback when Vim is back in
+ the main loop.
{callback} is the function to call. It can be the name of a
function or a |Funcref|. It is called with one argument, which
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt
index 990ba3d8fd..2cebd8abdd 100644
--- a/runtime/doc/change.txt
+++ b/runtime/doc/change.txt
@@ -276,7 +276,9 @@ gr{char} Replace the virtual characters under the cursor with
{char}. This replaces in screen space, not file
space. See |gR| and |Virtual-Replace-mode| for more
details. As with |r| a count may be given.
- {char} can be entered like with |r|.
+ {char} can be entered like with |r|, but characters
+ that have a special meaning in Insert mode, such as
+ most CTRL-keys, cannot be used.
*digraph-arg*
The argument for Normal mode commands like |r| and |t| is a single character.
@@ -976,7 +978,7 @@ inside of strings can change! Also see 'softtabstop' option. >
< to display registers '1' and 'a'. Spaces are allowed
in {arg}.
- *:di* *:display*
+ *:di* *:dis* *:display*
:di[splay] [arg] Same as :registers.
*y* *yank*
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
index ad0570e9f7..3a5223fa3a 100644
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -1205,12 +1205,14 @@ functions used in one script use the same name as in other scripts. To avoid
this, they can be made local to the script.
*<SID>* *<SNR>* *E81*
-The string "<SID>" can be used in a mapping or menu.
+The string "<SID>" can be used in a mapping or menu. This is useful if you
+have a script-local function that you want to call from a mapping in the same
+script.
When executing the map command, Vim will replace "<SID>" with the special
key code <SNR>, followed by a number that's unique for the script, and an
underscore. Example: >
:map <SID>Add
-could define a mapping "<SNR>23_Add".
+would define a mapping "<SNR>23_Add".
When defining a function in a script, "s:" can be prepended to the name to
make it local to the script. But when a mapping is executed from outside of
diff --git a/runtime/doc/sign.txt b/runtime/doc/sign.txt
index 53ef03eb63..162bdaed7b 100644
--- a/runtime/doc/sign.txt
+++ b/runtime/doc/sign.txt
@@ -595,23 +595,23 @@ sign_placelist({list})
|sign_place()| function. The {list} argument specifies the
List of signs to place. Each list item is a dict with the
following sign attributes:
- buffer buffer name or number. For the accepted
+ buffer Buffer name or number. For the accepted
values, see |bufname()|.
- group sign group. {group} functions as a namespace
+ group Sign group. {group} functions as a namespace
for {id}, thus two groups can use the same
IDs. If not specified or set to an empty
string, then the global group is used. See
|sign-group| for more information.
- id sign identifier. If not specified or zero,
+ id Sign identifier. If not specified or zero,
then a new unique identifier is allocated.
Otherwise the specified number is used. See
|sign-identifier| for more information.
- lnum line number in the buffer where the sign is to
+ lnum Line number in the buffer where the sign is to
be placed. For the accepted values, see
|line()|.
- name name of the sign to place. See |sign_define()|
+ name Name of the sign to place. See |sign_define()|
for more information.
- priority priority of the sign. When multiple signs are
+ priority Priority of the sign. When multiple signs are
placed on a line, the sign with the highest
priority is used. If not specified, the
default value of 10 is used. See
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index 7102e93f0a..68d059be82 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -2756,17 +2756,25 @@ For highlighted doctests and code inside: >
:let python_no_doctest_highlight = 1
or >
:let python_no_doctest_code_highlight = 1
-(first option implies second one).
+The first option implies the second one.
For highlighted trailing whitespace and mix of spaces and tabs: >
:let python_space_error_highlight = 1
-If you want all possible Python highlighting (the same as setting the
-preceding last option and unsetting all other ones): >
+If you want all possible Python highlighting: >
:let python_highlight_all = 1
+This has the same effect as setting python_space_error_highlight and
+unsetting all the other ones.
+
+If you use Python 2 or straddling code (Python 2 and 3 compatible),
+you can enforce the use of an older syntax file with support for
+Python 2 and up to Python 3.5. >
+ : let python_use_python2_syntax = 1
+This option will exclude all modern Python 3.6 or higher features.
+
+Note: Only existence of these options matters, not their value.
+ You can replace 1 above with anything.
-Note: Only existence of these options matter, not their value. You can replace
- 1 above with anything.
QUAKE *quake.vim* *ft-quake-syntax*
@@ -5179,7 +5187,7 @@ Conceal Placeholder characters substituted for concealed
*hl-CurSearch*
CurSearch Used for highlighting a search pattern under the cursor
(see 'hlsearch').
- *hl-Cursor*
+ *hl-Cursor* *hl-lCursor*
Cursor Character under the cursor.
lCursor Character under the cursor when |language-mapping|
is used (see 'guicursor').