1- *eval.txt* For Vim version 8.2. Last change: 2020 Jun 30
1+ *eval.txt* For Vim version 8.2. Last change: 2020 Jul 09
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3048,7 +3048,8 @@ append({lnum}, {text}) *append()*
30483048 :let failed = append(line('$'), "# THE END")
30493049 :let failed = append(0, ["Chapter 1", "the beginning"])
30503050
3051- < Can also be used as a |method| after a List: >
3051+ < Can also be used as a |method| after a List, the base is
3052+ passed as the second argument: >
30523053 mylist->append(lnum)
30533054
30543055
@@ -3070,7 +3071,8 @@ appendbufline({expr}, {lnum}, {text}) *appendbufline()*
30703071 error message is given. Example: >
30713072 :let failed = appendbufline(13, 0, "# THE START")
30723073<
3073- Can also be used as a |method| after a List: >
3074+ < Can also be used as a |method| after a List, the base is
3075+ passed as the second argument: >
30743076 mylist->appendbufline(buf, lnum)
30753077
30763078
@@ -3914,6 +3916,7 @@ deepcopy({expr} [, {noref}]) *deepcopy()* *E698*
39143916 changing an item in the copy does not change the contents of
39153917 the original |List|.
39163918 A |Dictionary| is copied in a similar way as a |List|.
3919+
39173920 When {noref} is omitted or zero a contained |List| or
39183921 |Dictionary| is only copied once. All references point to
39193922 this single copy. With {noref} set to 1 every occurrence of a
@@ -4850,27 +4853,33 @@ get({list}, {idx} [, {default}]) *get()*
48504853 Get item {idx} from |List| {list}. When this item is not
48514854 available return {default}. Return zero when {default} is
48524855 omitted.
4853- Can also be used as a |method|: >
4856+ Preferably used as a |method|: >
48544857 mylist->get(idx)
48554858get({blob}, {idx} [, {default}])
48564859 Get byte {idx} from |Blob| {blob}. When this byte is not
48574860 available return {default}. Return -1 when {default} is
48584861 omitted.
4862+ Preferably used as a |method|: >
4863+ myblob->get(idx)
48594864get({dict}, {key} [, {default}])
48604865 Get item with key {key} from |Dictionary| {dict}. When this
48614866 item is not available return {default}. Return zero when
48624867 {default} is omitted. Useful example: >
48634868 let val = get(g:, 'var_name', 'default')
48644869< This gets the value of g:var_name if it exists, and uses
48654870 'default' when it does not exist.
4871+ Preferably used as a |method|: >
4872+ mydict->get(key)
48664873get({func}, {what})
48674874 Get an item with from Funcref {func}. Possible values for
48684875 {what} are:
48694876 "name" The function name
48704877 "func" The function
48714878 "dict" The dictionary
48724879 "args" The list with arguments
4873-
4880+ Preferably used as a |method|: >
4881+ myfunc->get(what)
4882+ <
48744883 *getbufinfo()*
48754884getbufinfo([{expr}])
48764885getbufinfo([{dict}])
@@ -9025,6 +9034,8 @@ setloclist({nr}, {list} [, {action} [, {what}]]) *setloclist()*
90259034 Otherwise, same as |setqflist()|.
90269035 Also see |location-list|.
90279036
9037+ For {action} see |setqflist-action|.
9038+
90289039 If the optional {what} dictionary argument is supplied, then
90299040 only the items listed in {what} are set. Refer to |setqflist()|
90309041 for the list of supported keys in {what}.
@@ -9103,7 +9114,7 @@ setqflist({list} [, {action} [, {what}]]) *setqflist()*
91039114 only the items listed in {what} are set. The first {list}
91049115 argument is ignored. See below for the supported items in
91059116 {what}.
9106-
9117+ *setqflist-what*
91079118 When {what} is not present, the items in {list} or used. Each
91089119 item must be a dictionary. Non-dictionary items in {list} are
91099120 ignored. Each dictionary item can contain the following
@@ -9140,7 +9151,7 @@ setqflist({list} [, {action} [, {what}]]) *setqflist()*
91409151 Note that the list is not exactly the same as what
91419152 |getqflist()| returns.
91429153
9143- {action} values: *E927*
9154+ {action} values: *setqflist-action* *E927*
91449155 'a' The items from {list} are added to the existing
91459156 quickfix list. If there is no existing list, then a
91469157 new list is created.
0 commit comments