comparison runtime/doc/eval.txt @ 10522:7232cd9f8a7c v8.0.0151

commit https://github.com/vim/vim/commit/12c4492dd35e0cd83c8816be2ec849b836109882 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 8 13:26:03 2017 +0100 patch 8.0.0151: passing buffer content to system() is clumsy Problem: To pass buffer content to system() and systemlist() one has to first create a string or list. Solution: Allow passing a buffer number. (LemonBoy, closes #1240)
author Christian Brabandt <cb@256bit.org>
date Sun, 08 Jan 2017 13:30:04 +0100
parents 222b1432814e
children 74effdaa369e
comparison
equal deleted inserted replaced
10521:3dd44fd29319 10522:7232cd9f8a7c
7559 written as-is, you need to take care of using the correct line 7559 written as-is, you need to take care of using the correct line
7560 separators yourself. 7560 separators yourself.
7561 If {input} is given and is a |List| it is written to the file 7561 If {input} is given and is a |List| it is written to the file
7562 in a way |writefile()| does with {binary} set to "b" (i.e. 7562 in a way |writefile()| does with {binary} set to "b" (i.e.
7563 with a newline between each list item with newlines inside 7563 with a newline between each list item with newlines inside
7564 list items converted to NULs). 7564 list items converted to NULs).
7565 When {input} is given and is a number that is a valid id for
7566 an existing buffer then the content of the buffer is written
7567 to the file line by line, each line terminated by a NL and
7568 NULs characters where the text has a NL.
7565 7569
7566 Pipes are not used, the 'shelltemp' option is not used. 7570 Pipes are not used, the 'shelltemp' option is not used.
7567 7571
7568 When prepended by |:silent| the terminal will not be set to 7572 When prepended by |:silent| the terminal will not be set to
7569 cooked mode. This is meant to be used for commands that do 7573 cooked mode. This is meant to be used for commands that do