diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-01-17 16:07:38 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-01-17 20:26:06 +0800 |
commit | 3db2139195b4ed2378d12b2fdae63e92725aa782 (patch) | |
tree | 142b2c8be0a06f9fccc7a368364ac09029b9a727 /runtime | |
parent | 2d71ed9929d6393ed46f9d0c218ed9ef37b67f1f (diff) | |
download | rneovim-3db2139195b4ed2378d12b2fdae63e92725aa782.tar.gz rneovim-3db2139195b4ed2378d12b2fdae63e92725aa782.tar.bz2 rneovim-3db2139195b4ed2378d12b2fdae63e92725aa782.zip |
vim-patch:8.2.4617: no completion for :scriptnames
Problem: No completion for :scriptnames.
Solution: Implement :scriptnames completion. (Yegappan Lakshmanan,
closes vim/vim#10005)
https://github.com/vim/vim/commit/454ce6737cadb82886f1fc0eb9e8666cc59ae42b
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/builtin.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index bdbd026a09..ca4518d1cc 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -2983,6 +2983,7 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()* messages |:messages| suboptions option options packadd optional package |pack-add| names + scriptnames sourced script names |:scriptnames| shellcmd Shell command sign |:sign| suboptions syntax syntax file names |'syntax'| @@ -3002,7 +3003,10 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()* If the 'wildoptions' option contains "fuzzy", then fuzzy matching is used to get the completion matches. Otherwise - regular expression matching is used. + regular expression matching is used. Thus this function + follows the user preference, what happens on the command line. + If you do not want this you can make 'wildoptions' empty + before calling getcompletion() and restore it afterwards. If {type} is "cmdline", then the |cmdline-completion| result is returned. For example, to complete the possible values after |