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,550 of 123,932   
   Eli the Bearded to Kenny McCormack   
   Re: The "leading zero means octal" thing   
   05 Jan 25 01:55:17   
   
   XPost: comp.lang.tcl, comp.unix.shell   
   From: *@eli.users.panix.com   
      
   In comp.unix.shell, Kenny McCormack  wrote:   
   > First of all, yes, I know this is all standardized and it is based on   
   > legacy C conventions and it can't be changed and so on and so forth.   
   >   
   > But if not a bug, it is certainly a misfeature.   
      
   I can see it as a legacy feature that has grown so old as to be a   
   misfeature. Other than bit patterns for chmod, I never see octal used   
   for modern stuff.   
      
   > the VIM editor.   
      
   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=   
      
   If you have no vimrc, the defaults.vim shipped with the editor (vim 8)   
   sets that to recognize decimal, binary ("0b10101"), and hexadecimal   
   ("0xcafe").  But the compiled in default also includes the dreaded   
   octal.   
      
   You might want to peruse the defaults.vim file for modern recommended   
   defaults. Except for scrolloff and incsearch, I don't find them that   
   unpleasant. I think a lot of people like incsearch, and I like scrolloff   
   on occaison, but not regularly.   
      
   Start vim, then ":e $VIMRUNTIME/defaults.vim" to view the defaults file.   
      
   Elijah   
   ------   
   prefers vim acting mostly "compatible"   
      
   --- 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