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,322 of 123,932   
   Janis Papanagnou to Eli the Bearded   
   Re: [vim] Side effects of extending 'mat   
   30 Dec 23 19:40:09   
   
   From: janis_papanagnou+ng@hotmail.com   
      
   On 30.12.2023 08:24, Eli the Bearded wrote:   
   > In comp.editors, Janis Papanagnou   wrote:   
   >> When editing HTML files with Vim I pondered about extending the   
   >> 'matchpairs' setting for editing convenience. The default is   
   >>   
   >>   matchpairs=(:),{:},[:]   
   >>   
   >> For the HTML editing purpose I temporarily change that to   
   >>   
   >>   matchpairs=(:),{:},[:],<:>   
   >>   
   >> I'd like to hear opinions about making that a fix change in the   
   >> configuration file. Or keep it an ad hoc change on demand? Could   
   >> there be any undesired side-effects I didn't think of when making   
   >> it persistent?   
   >   
   > You can use vim's auto commands to make that happen for only HTML files   
   > if you like.   
      
   Yes, I thought about making it file-type specific.   
      
   >   
   > autocmd BufNewFile,BufRead *.html set matchpairs=(:),{:},[:],<:>   
   >   
   > Personally I stick a bunch of Unicode pairs in there, too.   
   >   
   > https://qaz.wtf/qz/blosxom/2022/06/02/matchpairs   
      
   Interesting. And funny that the page exactly asks what I was looking   
   for. (BTW, thanks for the Unicode text file you linked on the page.   
   Very useful.)   
      
   >   
   > I keep showmatch turned off, so I don't know if the worst case is worse,   
   > but, daily drive over a year, no issues with manual % matching.   
      
   Good to know. Exactly the experience feedback I hoped for. Thanks.   
      
   I think I'll even try to make it persistent and see how it evolves.   
      
   Janis   
      
   --- 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