diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-26 08:35:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-26 08:35:05 +0800 |
commit | b1cfb299df2ef412339f594173ed23c75c090c8a (patch) | |
tree | a69da4fdc1e11c05a6dd73c8740ce00dc469c576 /runtime/lua/vim/_meta/vimfn.lua | |
parent | 5d8ab32f3871b0232972cac1116ac7cba98389e5 (diff) | |
download | rneovim-b1cfb299df2ef412339f594173ed23c75c090c8a.tar.gz rneovim-b1cfb299df2ef412339f594173ed23c75c090c8a.tar.bz2 rneovim-b1cfb299df2ef412339f594173ed23c75c090c8a.zip |
docs: various clarifications (#24876)
Diffstat (limited to 'runtime/lua/vim/_meta/vimfn.lua')
-rw-r--r-- | runtime/lua/vim/_meta/vimfn.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index 0ac8985274..ebd74046ce 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -9878,15 +9878,15 @@ function vim.fn.trunc(expr) end --- The result is a Number representing the type of {expr}. --- Instead of using the number directly, it is better to use the --- v:t_ variable that has the value: ---- Number: 0 (|v:t_number|) ---- String: 1 (|v:t_string|) ---- Funcref: 2 (|v:t_func|) ---- List: 3 (|v:t_list|) ---- Dictionary: 4 (|v:t_dict|) ---- Float: 5 (|v:t_float|) ---- Boolean: 6 (|v:true| and |v:false|) ---- Null: 7 (|v:null|) ---- Blob: 10 (|v:t_blob|) +--- Number: 0 |v:t_number| +--- String: 1 |v:t_string| +--- Funcref: 2 |v:t_func| +--- List: 3 |v:t_list| +--- Dictionary: 4 |v:t_dict| +--- Float: 5 |v:t_float| +--- Boolean: 6 |v:t_bool| (|v:false| and |v:true|) +--- Null: 7 (|v:null|) +--- Blob: 10 |v:t_blob| --- For backward compatibility, this method can be used: >vim --- if type(myvar) == type(0) | endif --- if type(myvar) == type("") | endif |