diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-11-14 18:10:56 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-11-14 18:10:56 +0100 |
commit | 3ab72c5c72fb824da0e9c850479052d6f8c78e52 (patch) | |
tree | 44c3211ba24e2d7a8fb57290bd1ff6896ec50aa1 /runtime/doc | |
parent | e3a2246227cfc1c9a4415d2c3f8a71622a67eac3 (diff) | |
download | vim-git-3ab72c5c72fb824da0e9c850479052d6f8c78e52.tar.gz |
updated for version 7.3.713v7.3.713
Problem: printf() can only align to bytes, not characters.
Solution: Add the "S" item. (Christian Brabandt)
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/eval.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 3afc3d0f7..f105cf104 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4451,6 +4451,7 @@ printf({fmt}, {expr1} ...) *printf()* Often used items are: %s string + %6S string right-aligned in 6 display cells %6s string right-aligned in 6 bytes %.9s string truncated to 9 bytes %c single byte @@ -4565,6 +4566,10 @@ printf({fmt}, {expr1} ...) *printf()* s The text of the String argument is used. If a precision is specified, no more bytes than the number specified are used. + S The text of the String argument is used. If a + precision is specified, no more display cells than the + number specified are used. Without the |+multi_byte| + feature works just like 's'. *printf-f* *E807* f The Float argument is converted into a string of the |