Mercurial > vim
comparison runtime/doc/eval.txt @ 6183:fca35aa9380a v7.4.427
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".
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 29 Aug 2014 15:53:52 +0200 |
parents | 6921742f396a |
children | 4176c48c7dd5 |
comparison
equal
deleted
inserted
replaced
6182:cef6c428930f | 6183:fca35aa9380a |
---|---|
6091 in a way |writefile()| does with {binary} set to "b" (i.e. | 6091 in a way |writefile()| does with {binary} set to "b" (i.e. |
6092 with a newline between each list item with newlines inside | 6092 with a newline between each list item with newlines inside |
6093 list items converted to NULs). | 6093 list items converted to NULs). |
6094 Pipes are not used. | 6094 Pipes are not used. |
6095 | 6095 |
6096 When prepended by |:silent| the shell will not be set to | |
6097 cooked mode. This is meant to be used for commands that do | |
6098 not need the user to type. It avoids stray characters showing | |
6099 up on the screen which require |CTRL-L| to remove. > | |
6100 :silent let f = system('ls *.vim') | |
6101 < | |
6096 Note: Use |shellescape()| or |::S| with |expand()| or | 6102 Note: Use |shellescape()| or |::S| with |expand()| or |
6097 |fnamemodify()| to escape special characters in a command | 6103 |fnamemodify()| to escape special characters in a command |
6098 argument. Newlines in {expr} may cause the command to fail. | 6104 argument. Newlines in {expr} may cause the command to fail. |
6099 The characters in 'shellquote' and 'shellxquote' may also | 6105 The characters in 'shellquote' and 'shellxquote' may also |
6100 cause trouble. | 6106 cause trouble. |