aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/options.txt
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-08-02 10:58:10 +0800
committerGitHub <noreply@github.com>2024-08-02 02:58:10 +0000
commit48e4589eaded3213956aa9ddbcc0aa6971a974e5 (patch)
treec07e1ff8cbd38f946815efa8516dd8a40188fdac /runtime/doc/options.txt
parent3bc864e7739d9fa8b086f5606a666abb4a34054d (diff)
downloadrneovim-48e4589eaded3213956aa9ddbcc0aa6971a974e5.tar.gz
rneovim-48e4589eaded3213956aa9ddbcc0aa6971a974e5.tar.bz2
rneovim-48e4589eaded3213956aa9ddbcc0aa6971a974e5.zip
vim-patch:8.2.4416: Vim9: using a script-local function requires using "s:" (#29950)
Problem: Vim9: using a script-local function requires using "s:" when setting 'completefunc'. Solution: Do not require "s:" in Vim9 script. (closes vim/vim#9796) https://github.com/vim/vim/commit/1fca5f3e86f08e696058fc7e86dfe41b415a78e6 vim-patch:8.2.4417: using NULL pointer Problem: Using NULL pointer. Solution: Set offset after checking for NULL pointer. https://github.com/vim/vim/commit/e89bfd212b21c227f026e467f882c62cdd6e642d Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'runtime/doc/options.txt')
-rw-r--r--runtime/doc/options.txt15
1 files changed, 11 insertions, 4 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index c8d4bea5a8..875767283a 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -384,15 +384,22 @@ the name, e.g. "<lambda>123". Examples:
set opfunc=function('MyOpFunc')
set opfunc=funcref('MyOpFunc')
set opfunc={a\ ->\ MyOpFunc(a)}
- " set using a funcref variable
+
+Set to a script-local function: >
+ set opfunc=s:MyLocalFunc
+ set opfunc=<SID>MyLocalFunc
+
+Set using a funcref variable: >
let Fn = function('MyTagFunc')
let &tagfunc = Fn
- " set using a lambda expression
+
+Set using a lambda expression: >
let &tagfunc = {t -> MyTagFunc(t)}
- " set using a variable with lambda expression
+
+Set using a variable with lambda expression: >
let L = {a, b, c -> MyTagFunc(a, b , c)}
let &tagfunc = L
-<
+
Setting the filetype