summaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-08-29 15:53:52 +0200
committerBram Moolenaar <Bram@vim.org>2014-08-29 15:53:52 +0200
commit52a7246f015be40e54007c0c3a1d9e37dc14045a (patch)
treefe02ec88208f11b62e7e38c9621de3ffb1b9985d /runtime/doc
parent96f3a49b3bab421edebff24f070634ae876edd7f (diff)
downloadvim-52a7246f015be40e54007c0c3a1d9e37dc14045a.zip
updated for version 7.4.427
Problem: When an InsertCharPre autocommand executes system() typeahead may be echoed and messes up the display. (Jacob Niehus) Solution: Do not set cooked mode when invoked from ":silent".
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/eval.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 9aa97b7f7..688fc38eb 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -6093,6 +6093,12 @@ system({expr} [, {input}]) *system()* *E677*
list items converted to NULs).
Pipes are not used.
+ When prepended by |:silent| the shell will not be set to
+ cooked mode. This is meant to be used for commands that do
+ not need the user to type. It avoids stray characters showing
+ up on the screen which require |CTRL-L| to remove. >
+ :silent let f = system('ls *.vim')
+<
Note: Use |shellescape()| or |::S| with |expand()| or
|fnamemodify()| to escape special characters in a command
argument. Newlines in {expr} may cause the command to fail.