Sujet : Re: The "leading zero means octal" thing...
De : makowiec (at) *nospam* invalid.invalid (Joe Makowiec)
Groupes : comp.lang.tcl comp.unix.shell comp.editorsDate : 05. Jan 2025, 16:51:55
Autres entêtes
Organisation : .
Message-ID : <XnsB25E6E86F20F0makowiecatnycapdotrE@95.217.65.137>
References : 1
User-Agent : Xnews/2009.05.01
On 04 Jan 2025 in comp.editors, Kenny McCormack wrote:
I hit this in VIM - where if the cursor is sitting on the zero in a
string like Foo07 and you hit ^A, it changes it to - are you ready?
- not Foo08, but Foo010.
For what it's worth, I tried this in my edition of vim (v 9.1 on
Fedora 41, pretty much default). It incremented Foo07 to Foo08. I dug
into /usr/share/vim/vim91/defaults.vim and found this:
" Do not recognize octal numbers for Ctrl-A and Ctrl-X, most users find it
" confusing.
set nrformats-=octal
-- Joe Makowiechttp://makowiec.org/Email: http://makowiec.org/contact/?JoeUsenet Improvement Project: http://twovoyagers.com/improve-usenet.org/