|
1 |
| -*builtin.txt* For Vim version 9.1. Last change: 2024 Dec 03 |
| 1 | +*builtin.txt* For Vim version 9.1. Last change: 2025 Jan 02 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -67,6 +67,8 @@ autocmd_get([{opts}]) List return a list of autocmds
|
67 | 67 | balloon_gettext() String current text in the balloon
|
68 | 68 | balloon_show({expr}) none show {expr} inside the balloon
|
69 | 69 | balloon_split({msg}) List split {msg} as used for a balloon
|
| 70 | +base64_decode({string}) Blob base64 decode {string} characters |
| 71 | +base64_encode({blob}) String base64 encode the bytes in {blob} |
70 | 72 | bindtextdomain({package}, {path})
|
71 | 73 | Bool bind text domain to specified path
|
72 | 74 | blob2list({blob}) List convert {blob} into a list of numbers
|
@@ -277,6 +279,7 @@ getregionpos({pos1}, {pos2} [, {opts}])
|
277 | 279 | List get a list of positions for a region
|
278 | 280 | getregtype([{regname}]) String type of a register
|
279 | 281 | getscriptinfo([{opts}]) List list of sourced scripts
|
| 282 | +getstacktrace() List get current stack trace of Vim scripts |
280 | 283 | gettabinfo([{expr}]) List list of tab pages
|
281 | 284 | gettabvar({nr}, {varname} [, {def}])
|
282 | 285 | any variable {varname} in tab {nr} or {def}
|
@@ -1225,6 +1228,43 @@ balloon_split({msg}) *balloon_split()*
|
1225 | 1228 |
|
1226 | 1229 | Return type: list<any> or list<string>
|
1227 | 1230 |
|
| 1231 | +base64_decode({string}) *base64_decode()* |
| 1232 | + Return a Blob containing the bytes decoded from the base64 |
| 1233 | + encoded characters in {string}. |
| 1234 | + |
| 1235 | + The {string} argument should contain only base64-encoded |
| 1236 | + characters and should have a length that is a multiple of 4. |
| 1237 | + |
| 1238 | + Returns an empty blob on error. |
| 1239 | + |
| 1240 | + Examples: > |
| 1241 | + " Write the decoded contents to a binary file |
| 1242 | + call writefile(base64_decode(s), 'tools.bmp') |
| 1243 | + " Decode a base64-encoded string |
| 1244 | + echo list2str(blob2list(base64_decode(encodedstr))) |
| 1245 | +< |
| 1246 | + Can also be used as a |method|: > |
| 1247 | + GetEncodedString()->base64_decode() |
| 1248 | +< |
| 1249 | + Return type: |Blob| |
| 1250 | + |
| 1251 | + |
| 1252 | +base64_encode({blob}) *base64_encode()* |
| 1253 | + Return a base64-encoded String representing the bytes in |
| 1254 | + {blob}. The base64 alphabet defined in RFC 4648 is used. |
| 1255 | + |
| 1256 | + Examples: > |
| 1257 | + " Encode the contents of a binary file |
| 1258 | + echo base64_encode(readblob('somefile.bin')) |
| 1259 | + " Encode a string |
| 1260 | + echo base64_encode(list2blob(str2list(somestr))) |
| 1261 | +< |
| 1262 | + Can also be used as a |method|: > |
| 1263 | + GetBinaryData()->base64_encode() |
| 1264 | +< |
| 1265 | + Return type: |String| |
| 1266 | + |
| 1267 | + |
1228 | 1268 | bindtextdomain({package}, {path}) *bindtextdomain()*
|
1229 | 1269 | Bind a specific {package} to a {path} so that the
|
1230 | 1270 | |gettext()| function can be used to get language-specific
|
@@ -1857,10 +1897,15 @@ complete_info([{what}]) *complete_info()*
|
1857 | 1897 | See |complete_info_mode| for the values.
|
1858 | 1898 | pum_visible |TRUE| if popup menu is visible.
|
1859 | 1899 | See |pumvisible()|.
|
1860 |
| - items List of completion matches. Each item is a |
1861 |
| - dictionary containing the entries "word", |
| 1900 | + items List of all completion candidates. Each item |
| 1901 | + is a dictionary containing the entries "word", |
1862 | 1902 | "abbr", "menu", "kind", "info" and "user_data".
|
1863 | 1903 | See |complete-items|.
|
| 1904 | + matches Same as "items", but only returns items that |
| 1905 | + are matching current query. If both "matches" |
| 1906 | + and "items" are in "what", the returned list |
| 1907 | + will still be named "items", but each item |
| 1908 | + will have an additional "match" field. |
1864 | 1909 | selected Selected item index. First index is zero.
|
1865 | 1910 | Index is -1 if no item is selected (showing
|
1866 | 1911 | typed text only, or the last completion after
|
@@ -4953,6 +4998,21 @@ getscriptinfo([{opts}]) *getscriptinfo()*
|
4953 | 4998 | Return type: list<dict<any>>
|
4954 | 4999 |
|
4955 | 5000 |
|
| 5001 | +getstacktrace() *getstacktrace()* |
| 5002 | + Returns the current stack trace of Vim scripts. |
| 5003 | + Stack trace is a |List|, of which each item is a |Dictionary| |
| 5004 | + with the following items: |
| 5005 | + funcref The funcref if the stack is at the function, |
| 5006 | + otherwise this item is not exist. |
| 5007 | + event The string of the event description if the |
| 5008 | + stack is at autocmd event, otherwise this item |
| 5009 | + is not exist. |
| 5010 | + lnum The line number of the script on the stack. |
| 5011 | + filepath The file path of the script on the stack. |
| 5012 | + |
| 5013 | + Return type: list<dict<any>> |
| 5014 | + |
| 5015 | + |
4956 | 5016 | gettabinfo([{tabnr}]) *gettabinfo()*
|
4957 | 5017 | If {tabnr} is not specified, then information about all the
|
4958 | 5018 | tab pages is returned as a |List|. Each List item is a
|
|
0 commit comments