1- *eval.txt* For Vim version 7.4. Last change: 2016 Aug 21
1+ *eval.txt* For Vim version 7.4. Last change: 2016 Aug 27
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4014,25 +4014,30 @@ getbufinfo([{dict}])
40144014 lnum current line number in buffer.
40154015 loaded TRUE if the buffer is loaded.
40164016 name full path to the file in the buffer.
4017- options dictionary of buffer local options.
40184017 signs list of signs placed in the buffer.
40194018 Each list item is a dictionary with
40204019 the following fields:
40214020 id sign identifier
40224021 lnum line number
40234022 name sign name
4024- variables dictionary of buffer local variables.
4025- windows list of | window-ID | s with this buffer
4023+ variables a reference to the dictionary with
4024+ buffer-local variables.
4025+ windows list of | window-ID | s that display this
4026+ buffer
40264027
40274028 Examples: >
40284029 for buf in getbufinfo()
40294030 echo buf.name
40304031 endfor
40314032 for buf in getbufinfo({'buflisted':1})
4032- if buf.options.filetype == 'java'
4033+ if buf.changed
40334034 ....
40344035 endif
40354036 endfor
4037+ <
4038+ To get buffer-local options use: >
4039+ getbufvar({bufnr}, '&')
4040+
40364041<
40374042 *getbufline()*
40384043getbufline({expr} , {lnum} [, {end} ])
@@ -4065,6 +4070,10 @@ getbufvar({expr}, {varname} [, {def}]) *getbufvar()*
40654070 must be used.
40664071 When {varname} is empty returns a dictionary with all the
40674072 buffer-local variables.
4073+ When {varname} is equal to "&" returns a dictionary with all
4074+ the buffer-local options.
4075+ Otherwise, when {varname} starts with "&" returns the value of
4076+ a buffer-local option.
40684077 This also works for a global or buffer-local option, but it
40694078 doesn't work for a global variable, window-local variable or
40704079 window-local option.
@@ -4532,7 +4541,8 @@ gettabinfo([{arg}]) *gettabinfo()*
45324541
45334542 Each List item is a Dictionary with the following entries:
45344543 tabnr tab page number.
4535- variables dictionary of tabpage local variables.
4544+ variables a reference to the dictionary with
4545+ tabpage-local variables
45364546 windows List of | window-ID | s in the tag page.
45374547
45384548gettabvar({tabnr} , {varname} [, {def} ]) *gettabvar()*
@@ -4548,10 +4558,12 @@ gettabvar({tabnr}, {varname} [, {def}]) *gettabvar()*
45484558gettabwinvar({tabnr} , {winnr} , {varname} [, {def} ]) *gettabwinvar()*
45494559 Get the value of window-local variable {varname} in window
45504560 {winnr} in tab page {tabnr} .
4551- When {varname} starts with "&" get the value of a window-local
4552- option.
45534561 When {varname} is empty a dictionary with all window-local
45544562 variables is returned.
4563+ When {varname} is equal to "&" get the values of all
4564+ window-local options in a Dictionary.
4565+ Otherwise, when {varname} starts with "&" get the value of a
4566+ window-local option.
45554567 Note that {varname} must be the name without "w:".
45564568 Tabs are numbered starting with one. For the current tabpage
45574569 use | getwinvar() | .
@@ -4591,15 +4603,18 @@ getwininfo([{winid}]) *getwininfo()*
45914603 height window height
45924604 loclist 1 if showing a location list
45934605 {only with the +quickfix feature}
4594- options dictionary of window local options
45954606 quickfix 1 if quickfix or location list window
45964607 {only with the +quickfix feature}
45974608 tabnr tab page number
4598- variables dictionary of window local variables
4609+ variables a reference to the dictionary with
4610+ window-local variables
45994611 width window width
46004612 winid | window-ID |
46014613 winnr window number
46024614
4615+ To obtain all window-local variables use: >
4616+ gettabwinvar({tabnr}, {winnr}, '&')
4617+
46034618 getwinvar({winnr} , {varname} [, {def} ]) *getwinvar()*
46044619 Like | gettabwinvar() | for the current tabpage.
46054620 Examples: >
@@ -5987,6 +6002,16 @@ printf({fmt}, {expr1} ...) *printf()*
59876002 cause truncation of a numeric field; if the result of
59886003 a conversion is wider than the field width, the field
59896004 is expanded to contain the conversion result.
6005+ The 'h' modifier indicates the argument is 16 bits.
6006+ The 'l' modifier indicates the argument is 32 bits.
6007+ The 'L' modifier indicates the argument is 64 bits.
6008+ Generally, these modifiers are not useful. They are
6009+ ignored when type is known from the argument.
6010+
6011+ i alias for d
6012+ D alias for ld
6013+ U alias for lu
6014+ O alias for lo
59906015
59916016 *printf-c*
59926017 c The Number argument is converted to a byte, and the
@@ -6006,7 +6031,7 @@ printf({fmt}, {expr1} ...) *printf()*
60066031 feature works just like 's'.
60076032
60086033 *printf-f* *E807*
6009- f The Float argument is converted into a string of the
6034+ f F The Float argument is converted into a string of the
60106035 form 123.456. The precision specifies the number of
60116036 digits after the decimal point. When the precision is
60126037 zero the decimal point is omitted. When the precision
0 commit comments