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,908 of 123,932   
   Eli the Bearded to Janis Papanagnou   
   Re: Vim 9 - but older releases preferred   
   17 Nov 25 02:23:25   
   
   From: *@eli.users.panix.com   
      
   In comp.editors, Janis Papanagnou replied to me:   
   >>   * Similarly ctrl-a / ctrl-x number increment / decrement   
   > Occasionally it's useful. - Mind surprises, though, e.g. when   
   > trying to increment the month or day component of an ISO date!   
   > (Been there.)   
      
   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.   
      
   > But very useful also if you want to add a certain offset, say 7,   
   > to many fields, '7' 'Ctrl-A' then move to other places and just   
   > repeat (with '.').   
      
   I've used it in tail-recursive macros to renumber things in large   
   files after adding or deleting a few things.   
      
   >> There are many Bram extensions I don't get a lot of value from,   
   >> like vimscript,   
   > I do no scripting in Vim.   
      
   Vim plugins are written in vimscript and many people find those useful.   
      
   >> and colors in my editor (eg search highlighting).   
   > I'm ambivalent here; it's useful but the way it's implemented isn't   
   > very appealing in some cases.   
      
   There are ways to tailor colors, but I'm not the person to ask about   
   that. I use "set t_Co=" (set to empty) to disable them. The t_??   
   settings override terminal features defined in termcap. It's almost   
   black magic.   
      
   Elijah   
   ------   
   also sets t_8u blank (for underline color)   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

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


(c) 1994,  bbs@darkrealms.ca