neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 6f45ee22fceeed710747f8eb195c081bfccc0b82
parent 64966ba52cea49333da076aff26866730314e259
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Thu, 25 Sep 2025 07:12:32 +0800

Merge pull request #35909 from zeertzjq/vim-34747a1

vim-patch: doc updates
Diffstat:
Mruntime/doc/cmdline.txt | 12+++++++-----
Mruntime/pack/dist/opt/netrw/autoload/netrw.vim | 2+-
2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt @@ -1342,12 +1342,14 @@ file picker: > set findfunc=Find func Find(arg, _) - if get(s:, 'filescache', []) == [] - let s:filescache = systemlist( - \ 'find . -path "*/.git" -prune -o -type f -print') + if empty(s:filescache) + let s:filescache = globpath('.', '**', 1, 1) + call filter(s:filescache, '!isdirectory(v:val)') + call map(s:filescache, "fnamemodify(v:val, ':.')") endif return a:arg == '' ? s:filescache : matchfuzzy(s:filescache, a:arg) endfunc + let s:filescache = [] autocmd CmdlineEnter : let s:filescache = [] The `:Grep` command searches for lines matching a pattern and updates the @@ -1358,8 +1360,8 @@ the `CmdlineLeavePre` autocmd from the next section): > \ Grep call <SID>VisitFile() func s:Grep(arglead, cmdline, cursorpos) - let cmd = $'grep -REIHns "{a:arglead}" --exclude-dir=.git - \ --exclude=".*"' + if match(&grepprg, '\$\*') == -1 | let &grepprg .= ' $*' | endif + let cmd = substitute(&grepprg, '\$\*', shellescape(escape(a:arglead, '\')), '') return len(a:arglead) > 1 ? systemlist(cmd) : [] endfunc diff --git a/runtime/pack/dist/opt/netrw/autoload/netrw.vim b/runtime/pack/dist/opt/netrw/autoload/netrw.vim @@ -8,7 +8,7 @@ " 2025 Sep 05 by Vim Project ensure netrw#fs#Dirname() returns trailing slash #18199 " 2025 Sep 11 by Vim Project only keep cursor position in tree mode #18275 " 2025 Sep 17 by Vim Project tighten the regex to handle remote compressed archives #18318 -" 2025 Sep 18 by Vim Project equalalwayse not always respected #18358 +" 2025 Sep 18 by Vim Project 'equalalways' not always respected #18358 " Copyright: Copyright (C) 2016 Charles E. Campbell {{{1 " Permission is hereby granted to use and distribute this code, " with or without modifications, provided that this copyright