[vim/vim] docs(cmdline): better fuzzy file picker (PR #20767)

7 views
Skip to first unread message

Mao-Yining

unread,
Jul 14, 2026, 11:23:44 AM (21 hours ago) Jul 14
to vim/vim, Subscribed
  1. Only reset cache after used.
  2. Use expand('**', 1, 1) than globpath('.', '**', 1, 1).
Environment expand (s) globpath (s) expand faster
WSL (small) 0.0491 0.0537 9.4%
Windows (large) 1.6606 2.3565 41.9%

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20767

Commit Summary

  • 4382154 docs(cmdline): better fuzzy file picker

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20767@github.com>

Maxim Kim

unread,
Jul 14, 2026, 7:49:36 PM (13 hours ago) Jul 14
to vim/vim, Subscribed
habamax left a comment (vim/vim#20767)

expand() is indeed faster than globpath() on my win machine:

vim9script
cd C:/Windows
var start = reltime()
var exp = expand('**', 1, 1)
append('$', '# ' .. reltimestr(reltime(start)))
#  96.272363

vs

vim9script
cd C:/Windows
var start = reltime()
var exp = globpath('.', '**', 1, 1)
append('$', '# ' .. reltimestr(reltime(start)))
# 122.216585


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20767/c4975162253@github.com>

Mark Woods

unread,
7:17 AM (1 hour ago) 7:17 AM
to vim/vim, Subscribed
mmrwoods left a comment (vim/vim#20767)

Slightly faster on my Mac too, in a GH repo with c. 230K files...

globpath('.', '**', 1, 1) -> 8.745012
expand('**', 1, 1) -> 8.201965


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20767/c4979915378@github.com>

Reply all
Reply to author
Forward
0 new messages