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,460 of 123,932   
   Janis Papanagnou to Axel Reichert   
   Re: Languages to extend editors   
   03 Jun 24 16:25:56   
   
   From: janis_papanagnou+ng@hotmail.com   
      
   On 02.06.2024 07:42, Axel Reichert wrote:   
   >   
   > Interesting. I read some more about languages in vi and clones. It seems   
   > that there is still the old "ex" style (giving commands with ":" as   
   > prefix). This of course was very limited, [...]   
      
   Don't understate the 'ex' editor (or 'ex'-mode in Vi). You can do   
   powerful things out of the box that you cannot do in normal mode!   
      
   Here's a sample from a lecture I once gave (just to illustrate)[*]   
      
     :/^Start$/,$g/^# Key//Control-Key/s/Hello/Hello World/   
      
   The point of the example was editing in certain sectors and change   
   text only in specific text contexts across lines and sections, and   
   leaving other appearances untouched.   
      
   Janis   
      
   [*] Yes, it appears cryptic, but it's composed of building blocks,   
   and if you've learned the three concepts used in the sample it's   
   simply constructed.   
      
   --- 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