1- *eval.txt* For Vim version 8.1. Last change: 2019 Jan 01
1+ *eval.txt* For Vim version 8.1. Last change: 2019 Jan 06
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3945,20 +3945,24 @@ extend({expr1}, {expr2} [, {expr3}]) *extend()*
39453945feedkeys({string} [, {mode} ]) *feedkeys()*
39463946 Characters in {string} are queued for processing as if they
39473947 come from a mapping or were typed by the user.
3948+
39483949 By default the string is added to the end of the typeahead
39493950 buffer, thus if a mapping is still being executed the
39503951 characters come after them. Use the 'i' flag to insert before
39513952 other characters, they will be executed next, before any
39523953 characters from a mapping.
3954+
39533955 The function does not wait for processing of keys contained in
39543956 {string} .
3957+
39553958 To include special keys into {string} , use double-quotes
39563959 and "\..." notation | expr-quote | . For example,
39573960 feedkeys("\<CR> ") simulates pressing of the <Enter> key. But
39583961 feedkeys('\<CR> ') pushes 5 characters.
3959- If {mode} is absent, keys are remapped.
3962+
39603963 {mode} is a String, which can contain these character flags:
3961- 'm' Remap keys. This is default.
3964+ 'm' Remap keys. This is default. If {mode} is absent,
3965+ keys are remapped.
39623966 'n' Do not remap keys.
39633967 't' Handle keys as if typed; otherwise they are handled as
39643968 if coming from a mapping. This matters for undo,
@@ -3972,6 +3976,9 @@ feedkeys({string} [, {mode}]) *feedkeys()*
39723976 will behave as if <Esc> is typed, to avoid getting
39733977 stuck, waiting for a character to be typed before the
39743978 script continues.
3979+ Note that if you manage to call feedkeys() while
3980+ executing commands, thus calling it recursively, the
3981+ all typehead will be consumed by the last call.
39753982 '!' When used with 'x' will not end Insert mode. Can be
39763983 used in a test when a timer is set to exit Insert mode
39773984 a little later. Useful for testing CursorHoldI.
@@ -6700,8 +6707,9 @@ prop_add({lnum}, {col}, {props})
67006707 another line; can be zero
67016708 end_lnum line number for the end of text
67026709 end_col column just after the text; not used when "length"
6703- is present; when {col} and "end_col" are equal
6704- this is a zero-width text property
6710+ is present; when {col} and "end_col" are
6711+ equal, and "end_lnum" is omitted or equal to
6712+ {lnum} , this is a zero-width text property
67056713 bufnr buffer to add the property to; when omitted
67066714 the current buffer is used
67076715 id user defined ID for the property; when omitted
@@ -7454,7 +7462,8 @@ serverlist() *serverlist()*
74547462<
74557463setbufline({expr} , {lnum} , {text} ) *setbufline()*
74567464 Set line {lnum} to {text} in buffer {expr} . To insert
7457- lines use | append() | .
7465+ lines use | append() | . Any text properties in {lnum} are
7466+ cleared.
74587467
74597468 For the use of {expr} , see | bufname() | above.
74607469
@@ -7534,7 +7543,7 @@ setfperm({fname}, {mode}) *setfperm()* *chmod*
75347543setline({lnum} , {text} ) *setline()*
75357544 Set line {lnum} of the current buffer to {text} . To insert
75367545 lines use | append() | . To set lines in another buffer use
7537- | setbufline() | .
7546+ | setbufline() | . Any text properties in {lnum} are cleared.
75387547
75397548 {lnum} is used like with | getline() | .
75407549 When {lnum} is just below the last line the {text} will be
@@ -7891,7 +7900,9 @@ sign_define({name} [, {dict}]) *sign_define()*
78917900 text text that is displayed when there is no icon
78927901 or the GUI is not being used.
78937902 texthl highlight group used for the text item
7894- For an existing sign, the attributes are updated.
7903+
7904+ If the sign named {name} already exists, then the attributes
7905+ of the sign are updated.
78957906
78967907 Returns 0 on success and -1 on failure.
78977908
@@ -7944,6 +7955,7 @@ sign_getplaced([{expr} [, {dict}]]) *sign_getplaced()*
79447955 empty string, then only signs in the global group are
79457956 returned. If no arguments are supplied, then signs in the
79467957 global group placed in all the buffers are returned.
7958+ See | sign-group | .
79477959
79487960 Each list item in the returned value is a dictionary with the
79497961 following entries:
@@ -7959,7 +7971,8 @@ sign_getplaced([{expr} [, {dict}]]) *sign_getplaced()*
79597971 name name of the defined sign
79607972 priority sign priority
79617973
7962- Returns an empty list on failure.
7974+ Returns an empty list on failure or if there are no placed
7975+ signs.
79637976
79647977 Examples: >
79657978 " Get a List of signs placed in eval.c in the
@@ -7992,7 +8005,8 @@ sign_place({id}, {group}, {name}, {expr} [, {dict}])
79928005 allocated. Otherwise the specified number is used. {group} is
79938006 the sign group name. To use the global sign group, use an
79948007 empty string. {group} functions as a namespace for {id} , thus
7995- two groups can use the same IDs.
8008+ two groups can use the same IDs. Refer to | sign-identifier |
8009+ for more information.
79968010
79978011 {name} refers to a defined sign.
79988012 {expr} refers to a buffer name or number. For the accepted
@@ -9496,7 +9510,7 @@ undofile({name}) *undofile()*
94969510 If {name} is empty undofile() returns an empty string, since a
94979511 buffer without a file name will not write an undo file.
94989512 Useful in combination with | :wundo | and | :rundo | .
9499- When compiled without the +persistent_undo option this always
9513+ When compiled without the | +persistent_undo | option this always
95009514 returns an empty string.
95019515
95029516undotree() *undotree()*
0 commit comments