1- *eval.txt* For Vim version 8.0. Last change: 2017 Apr 22
1+ *eval.txt* For Vim version 8.0. Last change: 2017 Apr 29
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4584,6 +4584,7 @@ getqflist([{what}]) *getqflist()*
45844584 If the optional {what} dictionary argument is supplied, then
45854585 returns only the items listed in {what} as a dictionary. The
45864586 following string items are supported in {what} :
4587+ context get the context stored with | setqflist() |
45874588 nr get information for this quickfix list; zero
45884589 means the current quickfix list
45894590 title get the list title
@@ -4595,6 +4596,7 @@ getqflist([{what}]) *getqflist()*
45954596 returned.
45964597
45974598 The returned dictionary contains the following entries:
4599+ context context information stored with | setqflist() |
45984600 nr quickfix list number
45994601 title quickfix list title text
46004602 winid quickfix | window-ID | (if opened)
@@ -5265,9 +5267,14 @@ job_stop({job} [, {how}]) *job_stop()*
52655267 0 if "how" is not supported on the system.
52665268 Note that even when the operation was executed, whether the
52675269 job was actually stopped needs to be checked with
5268- job_status().
5269- The status of the job isn't checked, the operation will even
5270- be done when Vim thinks the job isn't running.
5270+ | job_status() | .
5271+
5272+ If the status of the job is "dead", the signal will not be
5273+ sent. This is to avoid to stop the wrong job (esp. on Unix,
5274+ where process numbers are recycled).
5275+
5276+ When using "kill" Vim will assume the job will die and close
5277+ the channel.
52715278
52725279 {only available when compiled with the | +job | feature}
52735280
@@ -6982,6 +6989,7 @@ setqflist({list} [, {action}[, {what}]]) *setqflist()*
69826989 only the items listed in {what} are set. The first {list}
69836990 argument is ignored. The following items can be specified in
69846991 {what} :
6992+ context any Vim type can be stored as a context
69856993 nr list number in the quickfix stack
69866994 title quickfix list title text
69876995 Unsupported keys in {what} are ignored.
@@ -10675,18 +10683,19 @@ missing: >
1067510683
1067610684 To execute a command only when the | +eval | feature is disabled requires a trick,
1067710685as this example shows: >
10678- if 1
10679- nnoremap : :"
10680- endif
10681- normal :set history=111<CR>
10682- if 1
10683- nunmap :
10684- endif
10686+
10687+ silent! while 0
10688+ set history=111
10689+ silent! endwhile
10690+
10691+ When the | +eval | feature is available the command is skipped because of the
10692+ "while 0". Without the | +eval | feature the "while 0" is an error, which is
10693+ silently ignored, and the command is executed.
1068510694
1068610695The "<CR> " here is a real CR character, type CTRL-V Enter to get it.
1068710696
1068810697When the | +eval | feature is available the ":" is remapped to add a double
10689- quote, which has the effect of commenting-out the command. without the
10698+ quote, which has the effect of commenting-out the command. Without the
1069010699| +eval | feature the nnoremap command is skipped and the command is executed.
1069110700
1069210701==============================================================================
0 commit comments