home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.editors      What? Edlin ain't good enough for you?      123,932 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 123,555 of 123,932   
   Janis Papanagnou to Kenny McCormack   
   Re: The "leading zero means octal" thing   
   05 Jan 25 08:39:54   
   
   XPost: comp.lang.tcl, comp.unix.shell   
   From: janis_papanagnou+ng@hotmail.com   
      
   [ f'up to comp.editors set ]   
      
   On 05.01.2025 07:33, Kenny McCormack wrote:   
   > In article ,   
   > Kenny McCormack  wrote:   
   >> In article ,   
   >> Eli the Bearded  <*@eli.users.panix.com> wrote:   
   >> ...   
   >>> Vim is highly configurable. See ":help nrformats" for supported formats.   
   >>> Not clearly documented in the version I have, but implied, is setting   
   >>> it to a blank string to only recognize ordinary decimal numbers.   
   >>>   
   >>> 	:set nrformats=   
   >>   
   >> Thanks for the tip.  I'll look into that.   
   >   
   > Yes, nf looks good.  I set it to "alpha", which makes it do the right thing   
   > with letters, while ignoring the stupid hex/octal/bin stuff.   
      
   This 'alpha' is an interesting useful feature I didn't know. Thanks.   
   (It will go into my .vimrc file.)   
      
   Testing it I was a bit astonished, though, that (and different from   
   numbers) it just works on single letters without a "carry"; with the   
   string "say38", operating a 66^A on the number part creates "say104"   
   while at any character it stops increment at "z".   
      
   (I recall that I once had a requirement to enumerate some date as   
   aa, ab, ac, ..., az, ba, bb, ..., bz, ..., zz, and even continuing   
   zz with aaa, as with a numeric carry.)   
      
   Janis   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca