summaryrefslogtreecommitdiff
path: root/runtime/doc/eval.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-09-10 19:22:57 +0000
committerBram Moolenaar <Bram@vim.org>2005-09-10 19:22:57 +0000
commit578b49e4f7caaf0e20ff63c1f08e6bc5fe0245ed (patch)
treef90f3d0684c0f25636b36b8d23baa3fcadb5c262 /runtime/doc/eval.txt
parent32330d3c679024a006f69dea73acc878f4c36df7 (diff)
downloadvim-578b49e4f7caaf0e20ff63c1f08e6bc5fe0245ed.zip
updated for version 7.0145
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r--runtime/doc/eval.txt19
1 files changed, 17 insertions, 2 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index e8e3c245e..c7fee8347 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1,4 +1,4 @@
-*eval.txt* For Vim version 7.0aa. Last change: 2005 Sep 09
+*eval.txt* For Vim version 7.0aa. Last change: 2005 Sep 10
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2957,6 +2957,21 @@ inputdialog({prompt} [, {text} [, {cancelreturn}]]) *inputdialog()*
Hitting <Enter> works like pressing the OK button. Hitting
<Esc> works like pressing the Cancel button.
+inputlist({textlist}) *inputlist()*
+ {textlist} must be a list of strings. This list is displayed,
+ one string per line. The user will be prompted to enter a
+ number, which is returned.
+ The user can also select an item by clicking on it with the
+ mouse. For the first string 0 is returned. When clicking
+ above the first item a negative number is returned. When
+ clicking on the prompt one more than the length of {textlist}
+ is returned.
+ Make sure {textlist} has less then 'lines' entries, otherwise
+ it won't work. It's a good idea to put the entry number at
+ the start of the string. Example: >
+ let color = inputlist(['Select color:', '1. red',
+ \ '2. green', '3. blue'])
+
inputrestore() *inputrestore()*
Restore typeahead that was saved with a previous inputsave().
Should be called the same number of times inputsave() is
@@ -4299,7 +4314,7 @@ taglist({expr}) *taglist()*
located by Vim. Refer to |tags-file-format| for the format of
the tags file generated by the different ctags tools.
- *tagfiles*
+ *tagfiles()*
tagfiles() Returns a List with the file names used to search for tags for
the current buffer. This is the 'tags' option expanded.