Mercurial > vim
comparison runtime/doc/usr_41.txt @ 24520:5bda4653aced
Update runtime files
Commit: https://github.com/vim/vim/commit/11e3c5ba820325b69cb56f70e13c21d7b8808d33
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 21 18:09:37 2021 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Apr 2021 18:15:04 +0200 |
parents | 10c39822f496 |
children | c7aa7acb23bb |
comparison
equal
deleted
inserted
replaced
24519:da748a66a65a | 24520:5bda4653aced |
---|---|
1 *usr_41.txt* For Vim version 8.2. Last change: 2021 Mar 14 | 1 *usr_41.txt* For Vim version 8.2. Last change: 2021 Apr 19 |
2 | 2 |
3 VIM USER MANUAL - by Bram Moolenaar | 3 VIM USER MANUAL - by Bram Moolenaar |
4 | 4 |
5 Write a Vim script | 5 Write a Vim script |
6 | 6 |
113 if you are impatient. | 113 if you are impatient. |
114 | 114 |
115 | 115 |
116 FOUR KINDS OF NUMBERS | 116 FOUR KINDS OF NUMBERS |
117 | 117 |
118 Numbers can be decimal, hexadecimal, octal or binary. A hexadecimal number | 118 Numbers can be decimal, hexadecimal, octal or binary. |
119 starts with "0x" or "0X". For example "0x1f" is decimal 31. An octal number | 119 |
120 starts with a zero. "017" is decimal 15. A binary number starts with "0b" or | 120 A hexadecimal number starts with "0x" or "0X". For example "0x1f" is decimal |
121 "0B". For example "0b101" is decimal 5. Careful: don't put a zero before a | 121 31. |
122 decimal number, it will be interpreted as an octal number! | 122 |
123 The ":echo" command always prints decimal numbers. Example: > | 123 An octal number starts with "0o", "0O" or a zero and another digit. "0o17" is |
124 decimal 15. Using just a zero prefix is not supported in Vim9 script. | |
125 | |
126 A binary number starts with "0b" or "0B". For example "0b101" is decimal 5. | |
127 | |
128 A decimal number is just digits. Careful: don't put a zero before a decimal | |
129 number, it will be interpreted as an octal number in legacy script! | |
130 | |
131 The ":echo" command always prints decimal numbers. Example: > | |
124 | 132 |
125 :echo 0x7f 0o36 | 133 :echo 0x7f 0o36 |
126 < 127 30 ~ | 134 < 127 30 ~ |
127 | 135 |
128 A number is made negative with a minus sign. This also works for hexadecimal, | 136 A number is made negative with a minus sign. This also works for hexadecimal, |