diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-04-28 09:06:05 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-04-28 21:29:57 -0400 |
commit | 04a4bbbe56fd6cbc164730cb9beab4ec6fefe3b0 (patch) | |
tree | 3c139284691ccf4f656af694de365e4a74813d8e /runtime | |
parent | 65821cc1b94e3beb2de19e1bb8def3fe6e82bc1f (diff) | |
download | rneovim-04a4bbbe56fd6cbc164730cb9beab4ec6fefe3b0.tar.gz rneovim-04a4bbbe56fd6cbc164730cb9beab4ec6fefe3b0.tar.bz2 rneovim-04a4bbbe56fd6cbc164730cb9beab4ec6fefe3b0.zip |
vim-patch:8.2.0860: cannot use CTRL-A and CTRL-X on unsigned numbers
Problem: Cannot use CTRL-A and CTRL-X on unsigned numbers.
Solution: Add "unsigned" to 'nrformats'. (Naruhiko Nishino, closes vim/vim#6144)
https://github.com/vim/vim/commit/aaad995f8384a77a64efba6846c9c4ac99de0953
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 5ee32a32b0..c2a1c04110 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -4208,6 +4208,15 @@ A jump table for the options with a short description can be found at |Q_op|. bin If included, numbers starting with "0b" or "0B" will be considered to be binary. Example: Using CTRL-X on "0b1000" subtracts one, resulting in "0b0111". + unsigned If included, numbers are recognized as unsigned. Thus a + leading dash or negative sign won't be considered as part of + the number. Examples: + Using CTRL-X on "2020" in "9-2020" results in "9-2019" + (without "unsigned" it would become "9-2021"). + Using CTRL-A on "2020" in "9-2020" results in "9-2021" + (without "unsigned" it would become "9-2019"). + Using CTRL-X on "0" or "18446744073709551615" (2^64) has + no effect, overflow is prevented. Numbers which simply begin with a digit in the range 1-9 are always considered decimal. This also happens for numbers that are not recognized as octal or hex. |