1
- *builtin.txt* For Vim version 9.1. Last change: 2024 Jun 17
1
+ *builtin.txt* For Vim version 9.1. Last change: 2024 Jun 23
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -28,9 +28,9 @@ acos({expr}) Float arc cosine of {expr}
28
28
add({object} , {item} ) List/Blob append {item} to {object}
29
29
and({expr} , {expr} ) Number bitwise AND
30
30
append({lnum} , {text} ) Number append {text} below line {lnum}
31
- appendbufline({expr } , {lnum} , {text} )
31
+ appendbufline({buf } , {lnum} , {text} )
32
32
Number append {text} below line {lnum}
33
- in buffer {expr }
33
+ in buffer {buf }
34
34
argc([{winid} ]) Number number of files in the argument list
35
35
argidx() Number current index in the argument list
36
36
arglistid([{winnr} [, {tabnr} ]]) Number argument list id
@@ -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
+ bindtextdomain({package} , {path} )
71
+ none bind text domain to specied path
70
72
blob2list({blob} ) List convert {blob} into a list of numbers
71
73
browse({save} , {title} , {initdir} , {default} )
72
74
String put up a file requester
@@ -153,8 +155,8 @@ diff_filler({lnum}) Number diff filler lines about {lnum}
153
155
diff_hlID({lnum} , {col} ) Number diff highlighting at {lnum} /{col}
154
156
digraph_get({chars} ) String get the | digraph | of {chars}
155
157
digraph_getlist([{listall} ]) List get all | digraph | s
156
- digraph_set({chars} , {digraph} ) Boolean register | digraph |
157
- digraph_setlist({digraphlist} ) Boolean register multiple | digraph | s
158
+ digraph_set({chars} , {digraph} ) Bool register | digraph |
159
+ digraph_setlist({digraphlist} ) Bool register multiple | digraph | s
158
160
echoraw({expr} ) none output {expr} as-is
159
161
empty({expr} ) Number | TRUE | if {expr} is empty
160
162
environ() Dict return environment variables
@@ -277,7 +279,8 @@ gettabvar({nr}, {varname} [, {def}])
277
279
gettabwinvar({tabnr} , {winnr} , {name} [, {def} ])
278
280
any {name} in {winnr} in tab page {tabnr}
279
281
gettagstack([{nr} ]) Dict get the tag stack of window {nr}
280
- gettext({text} ) String lookup translation of {text}
282
+ gettext({text} [, {package} ])
283
+ String lookup translation of {text}
281
284
getwininfo([{winid} ]) List list of info about each window
282
285
getwinpos([{timeout} ]) List X and Y coord in pixels of Vim window
283
286
getwinposx() Number X coord in pixels of the Vim window
@@ -429,6 +432,7 @@ popup_menu({what}, {options}) Number create a popup window used as a menu
429
432
popup_move({id} , {options} ) none set position of popup window {id}
430
433
popup_notification({what} , {options} )
431
434
Number create a notification popup window
435
+ popup_setbuf({id} , {buf} ) Bool set the buffer for the popup window {id}
432
436
popup_setoptions({id} , {options} )
433
437
none set options for popup window {id}
434
438
popup_settext({id} , {text} ) none set the text of popup window {id}
@@ -525,9 +529,9 @@ searchpos({pattern} [, {flags} [, {stopline} [, {timeout} [, {skip}]]]])
525
529
server2client({clientid} , {string} )
526
530
Number send reply string
527
531
serverlist() String get a list of available servers
528
- setbufline({expr } , {lnum} , {text} )
532
+ setbufline({buf } , {lnum} , {text} )
529
533
Number set line {lnum} to {text} in buffer
530
- {expr }
534
+ {buf }
531
535
setbufvar({buf} , {varname} , {val} )
532
536
none set {varname} in buffer {buf} to {val}
533
537
setcellwidths({list} ) none set character cell width overrides
@@ -1217,6 +1221,13 @@ balloon_split({msg}) *balloon_split()*
1217
1221
1218
1222
Return type: list<any> or list<string>
1219
1223
1224
+ bindtextdomain({package} , {path} ) *bindtextdomain()*
1225
+ Bind a specific {package} to a {path} so that the
1226
+ | gettext() | function can be used to get language-specific
1227
+ translations for a package. {path} is the directory name
1228
+ for the translations. See | package-create | .
1229
+
1230
+ Return type: none
1220
1231
1221
1232
blob2list({blob} ) *blob2list()*
1222
1233
Return a List containing the number value of each byte in Blob
@@ -2579,7 +2590,7 @@ execute({command} [, {silent}]) *execute()*
2579
2590
Can also be used as a | method | : >
2580
2591
GetCommand()->execute()
2581
2592
<
2582
- Return type: | Number |
2593
+ Return type: | String |
2583
2594
2584
2595
2585
2596
exepath({expr} ) *exepath()*
@@ -4977,7 +4988,7 @@ gettagstack([{winnr}]) *gettagstack()*
4977
4988
Return type: dict<any>
4978
4989
4979
4990
4980
- gettext({text} ) *gettext()*
4991
+ gettext({text} [, {package} ]) *gettext()*
4981
4992
Translate String {text} if possible.
4982
4993
This is mainly for use in the distributed Vim scripts. When
4983
4994
generating message translations the {text} is extracted by
@@ -4987,6 +4998,9 @@ gettext({text}) *gettext()*
4987
4998
For {text} double quoted strings are preferred, because
4988
4999
xgettext does not understand escaping in single quoted
4989
5000
strings.
5001
+ When the {package} is specified, the translation is looked up
5002
+ for that specific package. You need to specify the path to
5003
+ look for translations with the | bindtextdomain() | function.
4990
5004
4991
5005
Return type: | String |
4992
5006
0 commit comments