Mercurial > vim
diff runtime/doc/eval.txt @ 519:d50452846776
updated for version 7.0145
author | vimboss |
---|---|
date | Sat, 10 Sep 2005 19:22:57 +0000 |
parents | 04dcb5a1f2f9 |
children | a7ae7e043e43 |
line wrap: on
line diff
--- 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} [, {cance 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.