comparison runtime/doc/various.txt @ 20753:661eb972cb22

Update runtime files Commit: https://github.com/vim/vim/commit/acc224064033e5cea21ef7f1eefb356ca06ff11d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 7 21:07:18 2020 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Jun 2020 21:15:04 +0200
parents bd021eb62e73
children 8e5f991db3b4
comparison
equal deleted inserted replaced
20752:47b5de84b7f7 20753:661eb972cb22
1 *various.txt* For Vim version 8.2. Last change: 2020 Apr 13 1 *various.txt* For Vim version 8.2. Last change: 2020 May 30
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
249 249
250 A '|' in {cmd} is passed to the shell, you cannot use 250 A '|' in {cmd} is passed to the shell, you cannot use
251 it to append a Vim command. See |:bar|. 251 it to append a Vim command. See |:bar|.
252 252
253 If {cmd} contains "%" it is expanded to the current 253 If {cmd} contains "%" it is expanded to the current
254 file name. Special characters are not escaped, use 254 file name, "#" is expanded to the alternate file name.
255 quotes to avoid their special meaning: > 255 Special characters in the file name are not escaped,
256 use quotes to avoid their special meaning: >
256 :!ls "%" 257 :!ls "%"
257 < If the file name contains a "$" single quotes might 258 < If the file name contains a "$" then single quotes
258 work better (but a single quote causes trouble): > 259 might work better, but this only works if the file
260 name does not contain a single quote: >
259 :!ls '%' 261 :!ls '%'
260 < This should always work, but it's more typing: > 262 < This should always work, but it's more typing: >
261 :exe "!ls " . shellescape(expand("%")) 263 :exe "!ls " . shellescape(expand("%"))
264 < To get a literal "%" or "#" prepend it with a
265 backslash. For example, to list all files starting
266 with "%": >
267 :!ls \%*
262 < 268 <
263 A newline character ends {cmd}, what follows is 269 A newline character ends {cmd}, what follows is
264 interpreted as a following ":" command. However, if 270 interpreted as a following ":" command. However, if
265 there is a backslash before the newline it is removed 271 there is a backslash before the newline it is removed
266 and {cmd} continues. It doesn't matter how many 272 and {cmd} continues. It doesn't matter how many