File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
- *userfunc.txt* For Vim バージョン 9.0. Last change: 2023 Feb 02
1
+ *userfunc.txt* For Vim バージョン 9.0. Last change: 2023 May 23
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
51
51
{name} は辞書| Dictionary | の要素の| Funcref | であってもよ
52
52
い: >
53
53
:function dict.init
54
+ < Note {name} は式ではないため、関数参照である変数は使用
55
+ できないことに注意。この汚いトリックを使用すると、変数
56
+ "Funcref" で参照される関数をリストできる: >
57
+ let g:MyFuncref = Funcref
58
+ func g:MyFuncref
59
+ unlet g:MyFuncref
54
60
55
61
:fu[nction] /{pattern} {pattern} にマッチする名前の関数を表示する。"File" で終
56
62
わる関数を全て表示する例: >
Original file line number Diff line number Diff line change 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
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -51,6 +51,13 @@ define a global function.
51
51
{name} can also be a | Dictionary | entry that is a
52
52
| Funcref | : >
53
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
62
:fu[nction] /{pattern} List functions with a name matching {pattern} .
56
63
Example that lists all functions ending with "File": >
You can’t perform that action at this time.
0 commit comments