Mercurial > vim
comparison runtime/doc/userfunc.txt @ 32590:635de73eeb4c
Update runtime files
Commit: https://github.com/vim/vim/commit/10e8ff9b26078994cae57c2422b145d37aaf714e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 10 21:40:39 2023 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 10 Jun 2023 22:45:05 +0200 |
parents | a9b5ffbc0428 |
children | 448aef880252 |
comparison
equal
deleted
inserted
replaced
32589:47f101f21004 | 32590:635de73eeb4c |
---|---|
1 *userfunc.txt* For Vim version 9.0. Last change: 2023 Feb 02 | 1 *userfunc.txt* For Vim version 9.0. Last change: 2023 May 23 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
49 | 49 |
50 :fu[nction] {name} List function {name}. | 50 :fu[nction] {name} List function {name}. |
51 {name} can also be a |Dictionary| entry that is a | 51 {name} can also be a |Dictionary| entry that is a |
52 |Funcref|: > | 52 |Funcref|: > |
53 :function dict.init | 53 :function dict.init |
54 < Note that {name} is not an expression, you cannot use | |
55 a variable that is a function reference. You can use | |
56 this dirty trick to list the function referred to with | |
57 variable "Funcref": > | |
58 let g:MyFuncref = Funcref | |
59 func g:MyFuncref | |
60 unlet g:MyFuncref | |
54 | 61 |
55 :fu[nction] /{pattern} List functions with a name matching {pattern}. | 62 :fu[nction] /{pattern} List functions with a name matching {pattern}. |
56 Example that lists all functions ending with "File": > | 63 Example that lists all functions ending with "File": > |
57 :function /File$ | 64 :function /File$ |
58 < | 65 < |