From: Christian Brabandt Date: Thu, 21 May 2026 20:15:59 +0000 (+0000) Subject: runtime(doc): Update wrong shellescape() example X-Git-Tag: v9.2.0510~2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=44a1a6a33171ee34dddccf5236c38791fb489dfc;p=thirdparty%2Fvim.git runtime(doc): Update wrong shellescape() example Signed-off-by: Christian Brabandt --- diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt index e60a557dfd..761dba1c61 100644 --- a/runtime/doc/various.txt +++ b/runtime/doc/various.txt @@ -1,4 +1,4 @@ -*various.txt* For Vim version 9.2. Last change: 2026 Apr 27 +*various.txt* For Vim version 9.2. Last change: 2026 May 21 VIM REFERENCE MANUAL by Bram Moolenaar @@ -296,7 +296,7 @@ g8 Print the hex values of the bytes used in the name does not contain a single quote: > :!ls '%' < This should always work, but it's more typing: > - :exe "!ls " .. shellescape(expand("%")) + :exe "!ls " .. shellescape(expand("%"),1) < To get a literal "%" or "#" prepend it with a backslash. For example, to list all files starting with "%": >