aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lua.txt6
-rw-r--r--runtime/doc/news.txt5
-rw-r--r--runtime/doc/various.txt7
-rw-r--r--runtime/doc/vim_diff.txt1
4 files changed, 12 insertions, 7 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index cec3c1303f..4f56593491 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -233,11 +233,11 @@ command calls. The |lua-stdlib| modules, user modules, and anything else on
The Lua print() function redirects its output to the Nvim message area, with
arguments separated by " " (space) instead of "\t" (tab).
- *:lua*
+ *:lua=* *:lua*
:lua {chunk}
Executes Lua chunk {chunk}. If {chunk} starts with "=" the rest of the
- chunk is evaluated as an expression and printed. `:lua =expr` is
- equivalent to `:lua print(vim.inspect(expr))`
+ chunk is evaluated as an expression and printed. `:lua =expr` or `:=expr` is
+ equivalent to `:lua print(vim.inspect(expr))`.
Examples: >vim
:lua vim.api.nvim_command('echo "Hello, Nvim!"')
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index c326ae15c7..57b3e00709 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -237,6 +237,11 @@ The following changes to existing APIs or features add new behavior.
• The `win_viewport` UI event now contains information about virtual lines,
meaning that smooth scrolling can now be implemented more consistenlty.
+• The `:= {expr}` syntax can be used to evaluate a lua expression, as
+ a shorter form of `:lua ={expr}`. `:=` and `:[range]=` without argument
+ are unchanged. However `:=#` and similar variants using |ex-flags|
+ are no longer supported.
+
==============================================================================
REMOVED FEATURES *news-removed*
diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt
index ccde53cc06..8244ae4230 100644
--- a/runtime/doc/various.txt
+++ b/runtime/doc/various.txt
@@ -173,13 +173,12 @@ g8 Print the hex values of the bytes used in the
Like ":z" or ":z!", but number the lines.
*:=*
-:= [flags] Print the last line number.
- See |ex-flags| for [flags].
+:= Without arg: Print the last line number.
+ with args: equivalent to `:lua ={expr}`. see |:lua|
-:{range}= [flags] Prints the last line number in {range}. For example,
+:{range}= Prints the last line number in {range}. For example,
this prints the current line number: >
:.=
-< See |ex-flags| for [flags].
:norm[al][!] {commands} *:norm* *:normal*
Execute Normal mode commands {commands}. This makes
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index 9c01e3dbc7..cd93e4d17a 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -460,6 +460,7 @@ Commands:
|:doautocmd| does not warn about "No matching autocommands".
|:wincmd| accepts a count.
`:write!` does not show a prompt if the file was updated externally.
+ |:=| does not accept |ex-flags|. With an arg it is equivalent to |:lua=|
Command-line:
The meanings of arrow keys do not change depending on 'wildoptions'.