Groups | Search | Server Info | Login | Register
Groups > comp.editors > #106851
| From | Eli the Bearded <*@eli.users.panix.com> |
|---|---|
| Newsgroups | comp.editors |
| Subject | Re: Vim 9 - but older releases preferred |
| Date | 2025-11-17 20:19 +0000 |
| Organization | Some absurd concept |
| Message-ID | <eli$2511171519@qaz.wtf> (permalink) |
| References | <10fat2b$3p5tk$1@dont-email.me> <eli$2511160331@qaz.wtf> <10fc9ri$3p5tk$3@dont-email.me> <eli$2511162102@qaz.wtf> |
In comp.editors, Eli the Bearded <*@eli.users.panix.com> wrote: > In comp.editors, Janis Papanagnou replied to me: >> Occasionally it's useful. - Mind surprises, though, e.g. when >> trying to increment the month or day component of an ISO date! > This sounds like you would benefit from setting nrformats. > > default: nrformats=bin,octal,hex > 0b1011 >> ctrl-a >> 0b1100 > 001357 >> ctrl-a >> 001360 > 0xfeed >> ctrl-a >> 0xfeee > 456789 >> ctrl-a >> 456790 > > empty: nrformats= > 0b1011 >> ctrl-a >> 1b1011 > 001357 >> ctrl-a >> 001358 > 0xfeed >> ctrl-a >> 1xfeed > 456789 >> ctrl-a >> 456790 > > In each case, cursor was on first non-blank character. When it is blank, > only decimal numbers are recognized. By email, but apparently not in the newsgroup, Janis Papanagnou alerts me to the issue being the - seperator: 2025-11-17 >> ctrl-a (on the "1" in 17) >> 2025-11-16 Whereas I had been thinking of the 07 to 10 issue in months and days. There's indeed a fix for these - separated dates, if you use them regularly: set nrformats=unsigned 2025-11-17 >> ctrl-a (on the "1" in 17) >> 2025-11-18 Elijah ------ it's all in the help files
Back to comp.editors | Previous | Next — Previous in thread | Next in thread | Find similar
Vim 9 - but older releases preferred Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-15 22:58 +0100
Re: Vim 9 - but older releases preferred Eli the Bearded <*@eli.users.panix.com> - 2025-11-15 23:01 +0000
Re: Vim 9 - but older releases preferred Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-16 08:07 +0100
Re: Vim 9 - but older releases preferred Eli the Bearded <*@eli.users.panix.com> - 2025-11-16 09:01 +0000
Re: Vim 9 - but older releases preferred Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-16 11:42 +0100
Re: Vim 9 - but older releases preferred Eli the Bearded <*@eli.users.panix.com> - 2025-11-17 02:23 +0000
Re: Vim 9 - but older releases preferred Eli the Bearded <*@eli.users.panix.com> - 2025-11-17 20:19 +0000
Re: Vim 9 - but older releases preferred Anton Shepelev <anton.txt@gmail.moc> - 2025-12-06 01:26 +0300
Re: Vim 9 - but older releases preferred "Jeffrey H. Johnson" <johnsonjh.dev@gmail.com> - 2025-12-08 03:15 +0000
Re: Vim 9 - but older releases preferred John McCue <jmclnx@gmail.com.invalid> - 2025-11-16 13:46 +0000
csiph-web