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
@@ -3272,6 +3272,7 @@ delete({fname} [, {flags}]) *delete()*
32723272
32733273 When {flags} is "rf": Deletes the directory by the name
32743274 {fname} and everything in it, recursively. BE CAREFUL!
3275+
32753276 A symbolic link itself is deleted, not what it points to.
32763277
32773278 The result is a Number, which is 0 if the delete operation was
@@ -4014,25 +4015,30 @@ getbufinfo([{dict}])
40144015 lnum current line number in buffer.
40154016 loaded TRUE if the buffer is loaded.
40164017 name full path to the file in the buffer.
4017- options dictionary of buffer local options.
40184018 signs list of signs placed in the buffer.
40194019 Each list item is a dictionary with
40204020 the following fields:
40214021 id sign identifier
40224022 lnum line number
40234023 name sign name
4024- variables dictionary of buffer local variables.
4025- windows list of | window-ID | s with this buffer
4024+ variables a reference to the dictionary with
4025+ buffer-local variables.
4026+ windows list of | window-ID | s that display this
4027+ buffer
40264028
40274029 Examples: >
40284030 for buf in getbufinfo()
40294031 echo buf.name
40304032 endfor
40314033 for buf in getbufinfo({'buflisted':1})
4032- if buf.options.filetype == 'java'
4034+ if buf.changed
40334035 ....
40344036 endif
40354037 endfor
4038+ <
4039+ To get buffer-local options use: >
4040+ getbufvar({bufnr}, '&')
4041+
40364042<
40374043 *getbufline()*
40384044getbufline({expr} , {lnum} [, {end} ])
@@ -4065,6 +4071,10 @@ getbufvar({expr}, {varname} [, {def}]) *getbufvar()*
40654071 must be used.
40664072 When {varname} is empty returns a dictionary with all the
40674073 buffer-local variables.
4074+ When {varname} is equal to "&" returns a dictionary with all
4075+ the buffer-local options.
4076+ Otherwise, when {varname} starts with "&" returns the value of
4077+ a buffer-local option.
40684078 This also works for a global or buffer-local option, but it
40694079 doesn't work for a global variable, window-local variable or
40704080 window-local option.
@@ -4532,7 +4542,8 @@ gettabinfo([{arg}]) *gettabinfo()*
45324542
45334543 Each List item is a Dictionary with the following entries:
45344544 tabnr tab page number.
4535- variables dictionary of tabpage local variables.
4545+ variables a reference to the dictionary with
4546+ tabpage-local variables
45364547 windows List of | window-ID | s in the tag page.
45374548
45384549gettabvar({tabnr} , {varname} [, {def} ]) *gettabvar()*
@@ -4548,10 +4559,12 @@ gettabvar({tabnr}, {varname} [, {def}]) *gettabvar()*
45484559gettabwinvar({tabnr} , {winnr} , {varname} [, {def} ]) *gettabwinvar()*
45494560 Get the value of window-local variable {varname} in window
45504561 {winnr} in tab page {tabnr} .
4551- When {varname} starts with "&" get the value of a window-local
4552- option.
45534562 When {varname} is empty a dictionary with all window-local
45544563 variables is returned.
4564+ When {varname} is equal to "&" get the values of all
4565+ window-local options in a Dictionary.
4566+ Otherwise, when {varname} starts with "&" get the value of a
4567+ window-local option.
45554568 Note that {varname} must be the name without "w:".
45564569 Tabs are numbered starting with one. For the current tabpage
45574570 use | getwinvar() | .
@@ -4591,15 +4604,18 @@ getwininfo([{winid}]) *getwininfo()*
45914604 height window height
45924605 loclist 1 if showing a location list
45934606 {only with the +quickfix feature}
4594- options dictionary of window local options
45954607 quickfix 1 if quickfix or location list window
45964608 {only with the +quickfix feature}
45974609 tabnr tab page number
4598- variables dictionary of window local variables
4610+ variables a reference to the dictionary with
4611+ window-local variables
45994612 width window width
46004613 winid | window-ID |
46014614 winnr window number
46024615
4616+ To obtain all window-local variables use: >
4617+ gettabwinvar({tabnr}, {winnr}, '&')
4618+
46034619 getwinvar({winnr} , {varname} [, {def} ]) *getwinvar()*
46044620 Like | gettabwinvar() | for the current tabpage.
46054621 Examples: >
@@ -5987,6 +6003,16 @@ printf({fmt}, {expr1} ...) *printf()*
59876003 cause truncation of a numeric field; if the result of
59886004 a conversion is wider than the field width, the field
59896005 is expanded to contain the conversion result.
6006+ The 'h' modifier indicates the argument is 16 bits.
6007+ The 'l' modifier indicates the argument is 32 bits.
6008+ The 'L' modifier indicates the argument is 64 bits.
6009+ Generally, these modifiers are not useful. They are
6010+ ignored when type is known from the argument.
6011+
6012+ i alias for d
6013+ D alias for ld
6014+ U alias for lu
6015+ O alias for lo
59906016
59916017 *printf-c*
59926018 c The Number argument is converted to a byte, and the
@@ -6006,7 +6032,7 @@ printf({fmt}, {expr1} ...) *printf()*
60066032 feature works just like 's'.
60076033
60086034 *printf-f* *E807*
6009- f The Float argument is converted into a string of the
6035+ f F The Float argument is converted into a string of the
60106036 form 123.456. The precision specifies the number of
60116037 digits after the decimal point. When the precision is
60126038 zero the decimal point is omitted. When the precision
0 commit comments