summaryrefslogtreecommitdiff
path: root/runtime/doc/various.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-07 21:07:18 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-07 21:07:18 +0200
commitacc224064033e5cea21ef7f1eefb356ca06ff11d (patch)
treebb447a8591e335b0bec96a43a7c8fa5774d741df /runtime/doc/various.txt
parentdf44a27b53586fccfc6a3aedc89061fdd9a515ff (diff)
downloadvim-git-acc224064033e5cea21ef7f1eefb356ca06ff11d.tar.gz
Update runtime files
Diffstat (limited to 'runtime/doc/various.txt')
-rw-r--r--runtime/doc/various.txt16
1 files changed, 11 insertions, 5 deletions
diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt
index 384e8e65e..060cec02d 100644
--- a/runtime/doc/various.txt
+++ b/runtime/doc/various.txt
@@ -1,4 +1,4 @@
-*various.txt* For Vim version 8.2. Last change: 2020 Apr 13
+*various.txt* For Vim version 8.2. Last change: 2020 May 30
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -251,14 +251,20 @@ g8 Print the hex values of the bytes used in the
it to append a Vim command. See |:bar|.
If {cmd} contains "%" it is expanded to the current
- file name. Special characters are not escaped, use
- quotes to avoid their special meaning: >
+ file name, "#" is expanded to the alternate file name.
+ Special characters in the file name are not escaped,
+ use quotes to avoid their special meaning: >
:!ls "%"
-< If the file name contains a "$" single quotes might
- work better (but a single quote causes trouble): >
+< If the file name contains a "$" then single quotes
+ might work better, but this only works if the file
+ name does not contain a single quote: >
:!ls '%'
< This should always work, but it's more typing: >
:exe "!ls " . shellescape(expand("%"))
+< To get a literal "%" or "#" prepend it with a
+ backslash. For example, to list all files starting
+ with "%": >
+ :!ls \%*
<
A newline character ends {cmd}, what follows is
interpreted as a following ":" command. However, if