From: janis_papanagnou+ng@hotmail.com   
      
   On 29.12.2023 02:53, Eli the Bearded wrote:   
   > In comp.editors, Janis Papanagnou wrote:   
   >> Is there, on the other hand, some sensible use-case for that   
   >> current [inconsistent] behavior (of ad hoc changing the pattern)?   
   >   
   > It is a keyword search tool, not a random object search tool.   
      
   Yes, obviously. And that's IMO an unnecessary restriction.   
   YMMV, of course.   
      
   And even as an artificially restricted "keyword search tool"   
   it's not working consistent if applied to the two lines of   
   test data that I posted.   
      
   I suppose there's little use to discuss that since it won't   
   change if not widely accepted as a useful generalization of   
   the * and # command.   
      
   In my book it was certainly often a nuisance in the restricted   
   and inconsistent form and I would have appreciated if it works   
   also on other (non-alphanumeric) keywords (i.e. on strings).   
      
   > The word boundaries should be the indicator.   
      
   Janis   
      
   PS: Historically (IIRC), in Vi, there was just the # command   
   (but not the * which I saw later in Vim). A typical use was to   
   jump from a C function call backwards to find its declaration.   
   Application of Vi(m) broadened since then, and yet more useful   
   features and changes entered the Vim command base.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|