aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-12-30 23:30:40 -0500
committerJames McCoy <jamessan@jamessan.com>2017-12-30 23:35:45 -0500
commit89d1b36084f50acffdc7680212c37383e08787b5 (patch)
tree991ba81d5e3de2235bfaeac63ec33fc2087bc7f0
parent9ad557fb2d4a1ef3101c7894a1038aa2eb932a48 (diff)
downloadrneovim-89d1b36084f50acffdc7680212c37383e08787b5.tar.gz
rneovim-89d1b36084f50acffdc7680212c37383e08787b5.tar.bz2
rneovim-89d1b36084f50acffdc7680212c37383e08787b5.zip
vim-patch:8.0.0591: changes to eval functionality not documented
Problem: Changes to eval functionality not documented. Solution: Include all the changes. https://github.com/vim/vim/commit/45d2cca1ea3f90fc70ad99d0c6812a9d8536303c
-rw-r--r--runtime/doc/eval.txt20
1 files changed, 12 insertions, 8 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index a9474b58a3..2c3d38ced7 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -4327,6 +4327,7 @@ getqflist([{what}]) *getqflist()*
If the optional {what} dictionary argument is supplied, then
returns only the items listed in {what} as a dictionary. The
following string items are supported in {what}:
+ context get the context stored with |setqflist()|
nr get information for this quickfix list; zero
means the current quickfix list
title get the list title
@@ -4338,6 +4339,7 @@ getqflist([{what}]) *getqflist()*
returned.
The returned dictionary contains the following entries:
+ context context information stored with |setqflist()|
nr quickfix list number
title quickfix list title text
winid quickfix |window-ID| (if opened)
@@ -6885,6 +6887,7 @@ setqflist({list} [, {action}[, {what}]]) *setqflist()*
only the items listed in {what} are set. The first {list}
argument is ignored. The following items can be specified in
{what}:
+ context any Vim type can be stored as a context
nr list number in the quickfix stack
title quickfix list title text
Unsupported keys in {what} are ignored.
@@ -10508,18 +10511,19 @@ missing: >
To execute a command only when the |+eval| feature is disabled requires a trick,
as this example shows: >
- if 1
- nnoremap : :"
- endif
- normal :set history=111<CR>
- if 1
- nunmap :
- endif
+
+ silent! while 0
+ set history=111
+ silent! endwhile
+
+When the |+eval| feature is available the command is skipped because of the
+"while 0". Without the |+eval| feature the "while 0" is an error, which is
+silently ignored, and the command is executed.
The "<CR>" here is a real CR character, type CTRL-V Enter to get it.
When the |+eval| feature is available the ":" is remapped to add a double
-quote, which has the effect of commenting-out the command. without the
+quote, which has the effect of commenting-out the command. Without the
|+eval| feature the nnoremap command is skipped and the command is executed.
==============================================================================