|
1 | | -*eval.txt* For Vim version 7.4. Last change: 2016 Aug 28 |
| 1 | +*eval.txt* For Vim version 7.4. Last change: 2016 Aug 29 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -643,7 +643,7 @@ It's possible to form a variable name with curly braces, see |
643 | 643 |
|
644 | 644 | Expression syntax summary, from least to most significant: |
645 | 645 |
|
646 | | -|expr1| expr2 ? expr1 : expr1 if-then-else |
| 646 | +|expr1| expr2 ? expr1 : expr1 if-then-else |
647 | 647 |
|
648 | 648 | |expr2| expr3 || expr3 .. logical OR |
649 | 649 |
|
@@ -736,7 +736,9 @@ use in a variable such as "a:1". |
736 | 736 | expr2 and expr3 *expr2* *expr3* |
737 | 737 | --------------- |
738 | 738 |
|
739 | | - *expr-barbar* *expr-&&* |
| 739 | +expr3 || expr3 .. logical OR *expr-barbar* |
| 740 | +expr4 && expr4 .. logical AND *expr-&&* |
| 741 | + |
740 | 742 | The "||" and "&&" operators take one argument on each side. The arguments |
741 | 743 | are (converted to) Numbers. The result is: |
742 | 744 |
|
@@ -1981,7 +1983,7 @@ assert_notmatch({pat}, {text} [, {msg}]) none assert {pat} not matches {text} |
1981 | 1983 | assert_true({actual} [, {msg}]) none assert {actual} is true |
1982 | 1984 | asin({expr}) Float arc sine of {expr} |
1983 | 1985 | atan({expr}) Float arc tangent of {expr} |
1984 | | -atan2({expr}, {expr}) Float arc tangent of {expr1} / {expr2} |
| 1986 | +atan2({expr1}, {expr2}) Float arc tangent of {expr1} / {expr2} |
1985 | 1987 | browse({save}, {title}, {initdir}, {default}) |
1986 | 1988 | String put up a file requester |
1987 | 1989 | browsedir({title}, {initdir}) String put up a directory requester |
@@ -5905,9 +5907,10 @@ printf({fmt}, {expr1} ...) *printf()* |
5905 | 5907 | %X hex number using upper case letters |
5906 | 5908 | %o octal number |
5907 | 5909 | %08b binary number padded with zeros to at least 8 chars |
5908 | | - %f floating point number in the form 123.456 |
5909 | | - %e floating point number in the form 1.234e3 |
5910 | | - %E floating point number in the form 1.234E3 |
| 5910 | + %f floating point number as 12.23, inf, -inf or nan |
| 5911 | + %F floating point number as 12.23, INF, -INF or NAN |
| 5912 | + %e floating point number as 1.23e3, inf, -inf or nan |
| 5913 | + %E floating point number as 1.23E3, INF, -INF or NAN |
5911 | 5914 | %g floating point number, as %f or %e depending on value |
5912 | 5915 | %G floating point number, as %f or %E depending on value |
5913 | 5916 | %% the % character itself |
@@ -6039,8 +6042,9 @@ printf({fmt}, {expr1} ...) *printf()* |
6039 | 6042 | digits after the decimal point. When the precision is |
6040 | 6043 | zero the decimal point is omitted. When the precision |
6041 | 6044 | is not specified 6 is used. A really big number |
6042 | | - (out of range or dividing by zero) results in "inf". |
6043 | | - "0.0 / 0.0" results in "nan". |
| 6045 | + (out of range or dividing by zero) results in "inf" |
| 6046 | + or "-inf" with %f (INF or -INF with %F). |
| 6047 | + "0.0 / 0.0" results in "nan" with %f (NAN with %F). |
6044 | 6048 | Example: > |
6045 | 6049 | echo printf("%.2f", 12.115) |
6046 | 6050 | < 12.12 |
@@ -7507,7 +7511,7 @@ system({expr} [, {input}]) *system()* *E677* |
7507 | 7511 |
|
7508 | 7512 | Pipes are not used, the 'shelltemp' option is not used. |
7509 | 7513 |
|
7510 | | - When prepended by |:silent| the shell will not be set to |
| 7514 | + When prepended by |:silent| the terminal will not be set to |
7511 | 7515 | cooked mode. This is meant to be used for commands that do |
7512 | 7516 | not need the user to type. It avoids stray characters showing |
7513 | 7517 | up on the screen which require |CTRL-L| to remove. > |
|
0 commit comments