Mercurial > vim
diff runtime/doc/usr_41.txt @ 16871:e5dab34ded73
Update runtime files.
commit https://github.com/vim/vim/commit/7dd64a3e57d296fdee3b3ffe6d938f634b59848c
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 31 21:41:05 2019 +0200
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 31 May 2019 21:45:06 +0200 |
parents | c002c4899529 |
children | 1841c03a9b5e |
line wrap: on
line diff
--- a/runtime/doc/usr_41.txt +++ b/runtime/doc/usr_41.txt @@ -1,4 +1,4 @@ -*usr_41.txt* For Vim version 8.1. Last change: 2019 May 16 +*usr_41.txt* For Vim version 8.1. Last change: 2019 May 29 VIM USER MANUAL - by Bram Moolenaar @@ -105,20 +105,21 @@ We won't explain how |:for| and |range() if you are impatient. -THREE KINDS OF NUMBERS - -Numbers can be decimal, hexadecimal or octal. A hexadecimal number starts -with "0x" or "0X". For example "0x1f" is decimal 31. An octal number starts -with a zero. "017" is decimal 15. Careful: don't put a zero before a decimal -number, it will be interpreted as an octal number! +FOUR KINDS OF NUMBERS + +Numbers can be decimal, hexadecimal, octal or binary. A hexadecimal number +starts with "0x" or "0X". For example "0x1f" is decimal 31. An octal number +starts with a zero. "017" is decimal 15. A binary number starts with "0b" or +"0B". For example "0b101" is decimal 5. Careful: don't put a zero before a +decimal number, it will be interpreted as an octal number! The ":echo" command always prints decimal numbers. Example: > :echo 0x7f 036 < 127 30 ~ -A number is made negative with a minus sign. This also works for hexadecimal -and octal numbers. A minus sign is also used for subtraction. Compare this -with the previous example: > +A number is made negative with a minus sign. This also works for hexadecimal, +octal and binary numbers. A minus sign is also used for subtraction. Compare +this with the previous example: > :echo 0x7f -036 < 97 ~ @@ -614,6 +615,7 @@ String manipulation: *string-functio repeat() repeat a string multiple times eval() evaluate a string expression execute() execute an Ex command and get the output + win_execute() like execute() but in a specified window trim() trim characters from a string List manipulation: *list-functions*