summaryrefslogtreecommitdiffstats
path: root/runtime/doc/print.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-26 12:25:45 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-26 12:25:45 +0000
commitc51cf0329809c7ae946c59d6f56699227efc9d1b (patch)
tree825302ef0857905dbf08dc584ef6d6a8aae27790 /runtime/doc/print.txt
parente41c1dd8890d3f701253255993f4e9af2d12225c (diff)
Update runtime files.
Diffstat (limited to 'runtime/doc/print.txt')
-rw-r--r--runtime/doc/print.txt16
1 files changed, 8 insertions, 8 deletions
diff --git a/runtime/doc/print.txt b/runtime/doc/print.txt
index 771a58cec0..691e2b6540 100644
--- a/runtime/doc/print.txt
+++ b/runtime/doc/print.txt
@@ -139,28 +139,28 @@ If there is no error, return zero or an empty string.
The default for non MS-Windows or VMS systems is to simply use "lpr" to print
the file: >
- system('lpr' . (&printdevice == '' ? '' : ' -P' . &printdevice)
- . ' ' . v:fname_in) . delete(v:fname_in) + v:shell_error
+ system('lpr' .. (&printdevice == '' ? '' : ' -P' .. &printdevice)
+ .. ' ' .. v:fname_in) .. delete(v:fname_in) + v:shell_error
On MS-Windows machines the default is to copy the file to the currently
specified printdevice: >
- system('copy' . ' ' . v:fname_in . (&printdevice == ''
- ? ' LPT1:' : (' \"' . &printdevice . '\"')))
- . delete(v:fname_in)
+ system('copy' .. ' ' .. v:fname_in .. (&printdevice == ''
+ ? ' LPT1:' : (' \"' .. &printdevice .. '\"')))
+ .. delete(v:fname_in)
On VMS machines the default is to send the file to either the default or
currently specified printdevice: >
- system('print' . (&printdevice == '' ? '' : ' /queue=' .
- &printdevice) . ' ' . v:fname_in) . delete(v:fname_in)
+ system('print' .. (&printdevice == '' ? '' : ' /queue=' ..
+ &printdevice) .. ' ' .. v:fname_in) .. delete(v:fname_in)
If you change this option, using a function is an easy way to avoid having to
escape all the spaces. Example: >
:set printexpr=PrintFile(v:fname_in)
:function PrintFile(fname)
- : call system("ghostview " . a:fname)
+ : call system("ghostview " .. a:fname)
: call delete(a:fname)
: return v:shell_error
:endfunc