|
1 | | -*eval.txt* For Vim version 8.0. Last change: 2017 Oct 28 |
| 1 | +*eval.txt* For Vim version 8.0. Last change: 2017 Nov 16 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -8721,7 +8721,7 @@ winwidth({nr}) *winwidth()* |
8721 | 8721 | Examples: > |
8722 | 8722 | :echo "The current window has " . winwidth(0) . " columns." |
8723 | 8723 | :if winwidth(0) <= 50 |
8724 | | - : exe "normal 50\<C-W>|" |
| 8724 | + : 50 wincmd | |
8725 | 8725 | :endif |
8726 | 8726 | < For getting the terminal or screen size, see the 'columns' |
8727 | 8727 | option. |
@@ -8762,8 +8762,17 @@ writefile({list}, {fname} [, {flags}]) |
8762 | 8762 | appended to the file: > |
8763 | 8763 | :call writefile(["foo"], "event.log", "a") |
8764 | 8764 | :call writefile(["bar"], "event.log", "a") |
8765 | | -
|
8766 | | -< All NL characters are replaced with a NUL character. |
| 8765 | +< |
| 8766 | + When {flags} contains "s" then fsync() is called after writing |
| 8767 | + the file. This flushes the file to disk, if possible. This |
| 8768 | + takes more time but avoids losing the file if the system |
| 8769 | + crashes. |
| 8770 | + When {flags} does not contain "S" or "s" then fsync is called |
| 8771 | + if the 'fsync' option is set. |
| 8772 | + When {flags} contains "S" then fsync() is not called, even |
| 8773 | + when 'fsync' is set. |
| 8774 | + |
| 8775 | + All NL characters are replaced with a NUL character. |
8767 | 8776 | Inserting CR characters needs to be done before passing {list} |
8768 | 8777 | to writefile(). |
8769 | 8778 | An existing file is overwritten, if possible. |
|
0 commit comments