@@ -2316,6 +2316,9 @@ searchpos({pattern} [, {flags} [, {stopline} [, {timeout}]]])
23162316server2client({clientid} , {string} )
23172317 Number send reply string
23182318serverlist() String get a list of available servers
2319+ setbufline( {expr} , {lnum} , {line} )
2320+ Number set line {lnum} to {line} in buffer
2321+ {expr}
23192322setbufvar({expr} , {varname} , {val} )
23202323 none set {varname} in buffer {expr} to {val}
23212324setcharsearch({dict} ) Dict set character search from {dict}
@@ -2407,6 +2410,7 @@ term_wait({buf} [, {time}]) Number wait for screen to be updated
24072410test_alloc_fail({id} , {countdown} , {repeat} )
24082411 none make memory allocation fail
24092412test_autochdir() none enable 'autochdir' during startup
2413+ test_feedinput() none add key sequence to input buffer
24102414test_garbagecollect_now() none free memory right now for testing
24112415test_ignore_error({expr} ) none ignore a specific error
24122416test_null_channel() Channel null value for testing
@@ -4632,18 +4636,20 @@ getqflist([{what}]) *getqflist()*
46324636 returns only the items listed in {what} as a dictionary. The
46334637 following string items are supported in {what} :
46344638 context get the context stored with | setqflist() |
4639+ efm errorformat to use when parsing "lines". If
4640+ not present, then the 'erroformat' option
4641+ value is used.
46354642 id get information for the quickfix list with
46364643 | quickfix-ID | ; zero means the id for the
4637- current list or the list specifed by 'nr'
4644+ current list or the list specifed by "nr"
46384645 items quickfix list entries
4646+ lines use 'errorformat' to extract items from a list
4647+ of lines and return the resulting entries.
4648+ Only a | List | type is accepted. The current
4649+ quickfix list is not modified.
46394650 nr get information for this quickfix list; zero
4640- means the current quickfix list and '$' means
4651+ means the current quickfix list and "$" means
46414652 the last quickfix list
4642- text use 'errorformat' to extract items from the
4643- text and return the resulting entries. The
4644- value can be a string with one line or a list
4645- with multiple lines. The current quickfix list
4646- is not modified.
46474653 title get the list title
46484654 winid get the | window-ID | (if opened)
46494655 all all of the above quickfix properties
@@ -4671,6 +4677,7 @@ getqflist([{what}]) *getqflist()*
46714677 Examples: >
46724678 :echo getqflist({'all': 1})
46734679 :echo getqflist({'nr': 2, 'title': 1})
4680+ :echo getqflist({'lines' : ["F1:10:L10"]})
46744681<
46754682
46764683getreg([{regname} [, 1 [, {list} ]]]) *getreg()*
@@ -6858,6 +6865,19 @@ serverlist() *serverlist()*
68586865 Example: >
68596866 :echo serverlist()
68606867<
6868+ setbufline({expr} , {lnum} , {text} ) *setbufline()*
6869+ Set line {lnum} to {text} in buffer {expr} . To insert
6870+ lines use | append() | .
6871+
6872+ For the use of {expr} , see | bufname() | above.
6873+
6874+ {lnum} is used like with | setline() | .
6875+ This works like | setline() | for the specified buffer.
6876+ On success 0 is returned, on failure 1 is returned.
6877+
6878+ If {expr} is not a valid buffer or {lnum} is not valid, an
6879+ error message is given.
6880+
68616881setbufvar({expr} , {varname} , {val} ) *setbufvar()*
68626882 Set option or local variable {varname} in buffer {expr} to
68636883 {val} .
@@ -6926,13 +6946,19 @@ setfperm({fname}, {mode}) *setfperm()* *chmod*
69266946
69276947setline({lnum} , {text} ) *setline()*
69286948 Set line {lnum} of the current buffer to {text} . To insert
6929- lines use | append() | .
6949+ lines use | append() | . To set lines in another buffer use
6950+ | setbufline() | .
6951+
69306952 {lnum} is used like with | getline() | .
69316953 When {lnum} is just below the last line the {text} will be
69326954 added as a new line.
6955+
69336956 If this succeeds, 0 is returned. If this fails (most likely
6934- because {lnum} is invalid) 1 is returned. Example: >
6957+ because {lnum} is invalid) 1 is returned.
6958+
6959+ Example: >
69356960 :call setline(5, strftime("%c"))
6961+
69366962< When {text} is a | List | then line {lnum} and following lines
69376963 will be set to the items in the list. Example: >
69386964 :call setline(5, ['aaa', 'bbb', 'ccc'])
@@ -7064,35 +7090,38 @@ setqflist({list} [, {action}[, {what}]]) *setqflist()*
70647090 is created. The new quickfix list is added after the current
70657091 quickfix list in the stack and all the following lists are
70667092 freed. To add a new quickfix list at the end of the stack,
7067- set "nr" in {what} to '$' .
7093+ set "nr" in {what} to "$" .
70687094
70697095 If the optional {what} dictionary argument is supplied, then
70707096 only the items listed in {what} are set. The first {list}
70717097 argument is ignored. The following items can be specified in
70727098 {what} :
70737099 context any Vim type can be stored as a context
7074- text use 'errorformat' to extract items from the
7075- text and add the resulting entries to the
7076- quickfix list {nr} . The value can be a string
7077- with one line or a list with multiple lines.
7100+ efm errorformat to use when parsing text from
7101+ "lines". If this is not present, then the
7102+ 'errorformat' option value is used.
70787103 id quickfix list identifier | quickfix-ID |
70797104 items list of quickfix entries. Same as the {list}
70807105 argument.
7106+ lines use 'errorformat' to parse a list of lines and
7107+ add the resulting entries to the quickfix list
7108+ {nr} or {id} . Only a | List | value is supported.
70817109 nr list number in the quickfix stack; zero
7082- means the current quickfix list and '$' means
7110+ means the current quickfix list and "$" means
70837111 the last quickfix list
70847112 title quickfix list title text
70857113 Unsupported keys in {what} are ignored.
70867114 If the "nr" item is not present, then the current quickfix list
70877115 is modified. When creating a new quickfix list, "nr" can be
70887116 set to a value one greater than the quickfix stack size.
70897117 When modifying a quickfix list, to guarantee that the correct
7090- list is modified, 'id' should be used instead of 'nr' to
7118+ list is modified, "id" should be used instead of "nr" to
70917119 specify the list.
70927120
70937121 Examples: >
7094- :call setqflist([], 'r', {'title': 'My search'})
7095- :call setqflist([], 'r', {'nr': 2, 'title': 'Errors'})
7122+ :call setqflist([], 'r', {'title': 'My search'})
7123+ :call setqflist([], 'r', {'nr': 2, 'title': 'Errors'})
7124+ :call setqflist([], 'a', {'id':myid, 'lines':["F1:10:L10"]})
70967125<
70977126 Returns zero for success, -1 for failure.
70987127
@@ -7723,6 +7752,7 @@ synIDattr({synID}, {what} [, {mode}]) *synIDattr()*
77237752 "standout" "1" if standout
77247753 "underline" "1" if underlined
77257754 "undercurl" "1" if undercurled
7755+ "strike" "1" if strikethrough
77267756
77277757 Example (echoes the color of the syntax item under the
77287758 cursor): >
@@ -8141,6 +8171,12 @@ term_start({cmd}, {options}) *term_start()*
81418171 have "%d" where the buffer number goes,
81428172 e.g. "10split|buffer %d"; when not
81438173 specified "botright sbuf %d" is used
8174+ "eof_chars" Text to send after all buffer lines were
8175+ written to the terminal. When not set
8176+ CTRL-D is used. For Python use CTRL-Z or
8177+ "exit()". For a shell use "exit". A CR
8178+ is always added.
8179+ {only on MS-Windows}
81448180
81458181 {only available when compiled with the | +terminal | feature}
81468182
@@ -8161,6 +8197,11 @@ test_autochdir() *test_autochdir()*
81618197 Set a flag to enable the effect of 'autochdir' before Vim
81628198 startup has finished.
81638199
8200+ test_feedinput({string} ) *test_feedinput()*
8201+ Characters in {string} are queued for processing as if they
8202+ were typed by the user. This uses a low level input buffer.
8203+ This function works only when with | +unix | or GUI is running.
8204+
81648205test_garbagecollect_now() *test_garbagecollect_now()*
81658206 Like garbagecollect(), but executed right away. This must
81668207 only be called directly to avoid any structure to exist
0 commit comments