Mercurial > vim
comparison runtime/doc/eval.txt @ 20745:49673325ca13 v8.2.0925
patch 8.2.0925: getcompletion() does not return command line arguments
Commit: https://github.com/vim/vim/commit/1f1fd44ef796dd909ff5f3e5288b3fd79294dc71
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 7 18:45:14 2020 +0200
patch 8.2.0925: getcompletion() does not return command line arguments
Problem: Getcompletion() does not return command line arguments.
Solution: Add the "cmdline" option. (Shougo, closes https://github.com/vim/vim/issues/1140)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 07 Jun 2020 19:00:03 +0200 |
parents | a672feb8fc4f |
children | 661eb972cb22 |
comparison
equal
deleted
inserted
replaced
20744:e4fd0c87abd0 | 20745:49673325ca13 |
---|---|
5110 augroup autocmd groups | 5110 augroup autocmd groups |
5111 buffer buffer names | 5111 buffer buffer names |
5112 behave :behave suboptions | 5112 behave :behave suboptions |
5113 color color schemes | 5113 color color schemes |
5114 command Ex command (and arguments) | 5114 command Ex command (and arguments) |
5115 cmdline |cmdline-completion| result | |
5115 compiler compilers | 5116 compiler compilers |
5116 cscope |:cscope| suboptions | 5117 cscope |:cscope| suboptions |
5117 diff_buffer |:diffget| and |:diffput| completion | 5118 diff_buffer |:diffget| and |:diffput| completion |
5118 dir directory names | 5119 dir directory names |
5119 environment environment variable names | 5120 environment environment variable names |
5140 tag tags | 5141 tag tags |
5141 tag_listfiles tags, file names | 5142 tag_listfiles tags, file names |
5142 user user names | 5143 user user names |
5143 var user variables | 5144 var user variables |
5144 | 5145 |
5145 If {pat} is an empty string, then all the matches are returned. | 5146 If {pat} is an empty string, then all the matches are |
5146 Otherwise only items matching {pat} are returned. See | 5147 returned. Otherwise only items matching {pat} are returned. |
5147 |wildcards| for the use of special characters in {pat}. | 5148 See |wildcards| for the use of special characters in {pat}. |
5148 | 5149 |
5149 If the optional {filtered} flag is set to 1, then 'wildignore' | 5150 If the optional {filtered} flag is set to 1, then 'wildignore' |
5150 is applied to filter the results. Otherwise all the matches | 5151 is applied to filter the results. Otherwise all the matches |
5151 are returned. The 'wildignorecase' option always applies. | 5152 are returned. The 'wildignorecase' option always applies. |
5152 | 5153 |
5154 If {type} is "cmdline", then the |cmdline-completion| result is | |
5155 returned. For example, to complete the possible values after | |
5156 a ":call" command: > | |
5157 echo getcompletion('call ', 'cmdline') | |
5158 < | |
5153 If there are no matches, an empty list is returned. An | 5159 If there are no matches, an empty list is returned. An |
5154 invalid value for {type} produces an error. | 5160 invalid value for {type} produces an error. |
5155 | 5161 |
5156 Can also be used as a |method|: > | 5162 Can also be used as a |method|: > |
5157 GetPattern()->getcompletion('color') | 5163 GetPattern()->getcompletion('color') |