diff options
author | watiko <service@mail.watiko.net> | 2016-01-15 15:06:12 +0900 |
---|---|---|
committer | watiko <service@mail.watiko.net> | 2016-02-01 03:47:08 +0900 |
commit | a5f361e470c816ec9258fb815befafdef52b000b (patch) | |
tree | c35c74316b7a4f1a6aa486d41eaf9fae3b122f45 /runtime | |
parent | 7fc996abf6151364ec045607a6e1ab51e32920e5 (diff) | |
download | rneovim-a5f361e470c816ec9258fb815befafdef52b000b.tar.gz rneovim-a5f361e470c816ec9258fb815befafdef52b000b.tar.bz2 rneovim-a5f361e470c816ec9258fb815befafdef52b000b.zip |
vim-patch:7.4.1027
Problem: No support for binary numbers.
Solution: Add "bin" to nrformats. (Jason Schulz)
https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/change.txt | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt index 42dc84e0de..30b7dcaa4a 100644 --- a/runtime/doc/change.txt +++ b/runtime/doc/change.txt @@ -370,11 +370,14 @@ CTRL-A Add [count] to the number or alphabetic character at CTRL-X Subtract [count] from the number or alphabetic character at or after the cursor. -The CTRL-A and CTRL-X commands work for (signed) decimal numbers, unsigned -binary/octal/hexadecimal numbers and alphabetic characters. This -depends on the 'nrformats' option. -- When 'nrformats' includes "bin", Vim considers numbers starting with '0b' or - '0B' as binary. +The CTRL-A and CTRL-X commands can work for: +- signed and unsigned decimal numbers +- unsigned binary, octal and hexadecimal numbers +- alphabetic characters + +This depends on the 'nrformats' option: +- When 'nrformats' includes "bin", Vim assumes numbers starting with '0b' or + '0B' are binary. - When 'nrformats' includes "octal", Vim considers numbers starting with a '0' to be octal, unless the number includes a '8' or '9'. Other numbers are decimal and may have a preceding minus sign. |