Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

How many chunks could checkchunk check if checkchunk could check chunks? -- Alan Cox


computers / comp.editors / [vim] Side effects of extending 'matchpairs' ?

SubjectAuthor
* [vim] Side effects of extending 'matchpairs' ?Janis Papanagnou
+* Re: [vim] Side effects of extending 'matchpairs' ?Eli the Bearded
|+- Re: [vim] Side effects of extending 'matchpairs' ?Janis Papanagnou
|`- Re: [vim] Side effects of extending 'matchpairs' ?Jens Schweikhardt
`* Re: [vim] Side effects of extending 'matchpairs' ?Rene Kita
 `* Re: [vim] Side effects of extending 'matchpairs' ?Janis Papanagnou
  `- Re: [vim] Side effects of extending 'matchpairs' ?Janis Papanagnou

1
[vim] Side effects of extending 'matchpairs' ?

<ummqvo$snpl$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=92&group=comp.editors#92

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.editors
Subject: [vim] Side effects of extending 'matchpairs' ?
Date: Fri, 29 Dec 2023 17:09:27 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <ummqvo$snpl$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 29 Dec 2023 16:09:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9a88f9971171da36d21591f54ad7b25f";
logging-data="941877"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZSVSK3FN988iCgBkQ0j+L"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:1kMuGQoR+E4QULgep4CNr8o/FWQ=
X-Enigmail-Draft-Status: N1110
X-Mozilla-News-Host: news://news.eternal-september.org:119
 by: Janis Papanagnou - Fri, 29 Dec 2023 16:09 UTC

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?

Janis

Re: [vim] Side effects of extending 'matchpairs' ?

<eli$2312300200@qaz.wtf>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=94&group=comp.editors#94

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!qz!not-for-mail
From: *@eli.users.panix.com (Eli the Bearded)
Newsgroups: comp.editors
Subject: Re: [vim] Side effects of extending 'matchpairs' ?
Date: Sat, 30 Dec 2023 07:24:37 -0000 (UTC)
Organization: Some absurd concept
Message-ID: <eli$2312300200@qaz.wtf>
References: <ummqvo$snpl$1@dont-email.me>
Injection-Date: Sat, 30 Dec 2023 07:24:37 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="22202"; mail-complaints-to="abuse@panix.com"
User-Agent: Vectrex rn 2.1 (beta)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
 by: Eli the Bearded - Sat, 30 Dec 2023 07:24 UTC

In comp.editors, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> 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.

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

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.

Elijah
------
edited some of the pairs out

Re: [vim] Side effects of extending 'matchpairs' ?

<umpo6a$1c6e0$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=96&group=comp.editors#96

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.editors
Subject: Re: [vim] Side effects of extending 'matchpairs' ?
Date: Sat, 30 Dec 2023 19:40:09 +0100
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <umpo6a$1c6e0$1@dont-email.me>
References: <ummqvo$snpl$1@dont-email.me> <eli$2312300200@qaz.wtf>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 30 Dec 2023 18:40:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="464f9a33e26b1c4509e5548488ecb17b";
logging-data="1448384"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18D7Scwk9Nc98oC4VxvsNY8"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:9vy23l4XiVP1OjzFjMIevRGQjus=
In-Reply-To: <eli$2312300200@qaz.wtf>
 by: Janis Papanagnou - Sat, 30 Dec 2023 18:40 UTC

On 30.12.2023 08:24, Eli the Bearded wrote:
> In comp.editors, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> 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

Re: [vim] Side effects of extending 'matchpairs' ?

<umps1u$1clk6$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=97&group=comp.editors#97

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mail@rkta.de (Rene Kita)
Newsgroups: comp.editors
Subject: Re: [vim] Side effects of extending 'matchpairs' ?
Date: Sat, 30 Dec 2023 19:46:08 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <umps1u$1clk6$1@dont-email.me>
References: <ummqvo$snpl$1@dont-email.me>
Injection-Date: Sat, 30 Dec 2023 19:46:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="51dddac740c81bf23438df9c816bfdec";
logging-data="1463942"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MFgMoxZYGHcA81i5bN/a/"
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-13-amd64 (x86_64))
Cancel-Lock: sha1:uZwPOJxaTpPVzL1t9QknqrHSzzY=
 by: Rene Kita - Sat, 30 Dec 2023 19:46 UTC

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> 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?

I use this for C++ files, no undesired side-effects so far. It works.

Re: [vim] Side effects of extending 'matchpairs' ?

<umvf9l$2buvc$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=98&group=comp.editors#98

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.editors
Subject: Re: [vim] Side effects of extending 'matchpairs' ?
Date: Mon, 1 Jan 2024 23:45:08 +0100
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <umvf9l$2buvc$1@dont-email.me>
References: <ummqvo$snpl$1@dont-email.me> <umps1u$1clk6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 1 Jan 2024 22:45:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c08e348a0af73001c6d9cf297437244c";
logging-data="2489324"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+P+R9pmxGB/SebiuuJIH4B"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:YT5oPE2coHV/0G60X0OP44FXSXc=
In-Reply-To: <umps1u$1clk6$1@dont-email.me>
 by: Janis Papanagnou - Mon, 1 Jan 2024 22:45 UTC

On 30.12.2023 20:46, Rene Kita wrote:
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> 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?
>
> I use this for C++ files, no undesired side-effects so far. It works.

This is great! - I didn't think of C++ (despite using it occasionally).

Janis

Re: [vim] Side effects of extending 'matchpairs' ?

<kvgugoFpd6U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=99&group=comp.editors#99

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@schweikhardt.net (Jens Schweikhardt)
Newsgroups: comp.editors
Subject: Re: [vim] Side effects of extending 'matchpairs' ?
Date: 1 Jan 2024 23:00:40 GMT
Lines: 16
Sender: <schweikh@pinback.kabelbox.local>
Message-ID: <kvgugoFpd6U1@mid.individual.net>
References: <ummqvo$snpl$1@dont-email.me> <eli$2312300200@qaz.wtf>
X-Trace: individual.net 7yjmHNdRRxGrqLMsfsbjNQpZLy+sfied5HTaaQ6NX2jaZuxUq7
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:mQRZYgy8M8Z2iTeID7tJCDSK3uI= sha256:KsiUloWHcnQt/0RC+B8EinZAx2JDlN0cuNF07KAtiZQ=
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (FreeBSD/14.0-CURRENT (amd64))
 by: Jens Schweikhardt - Mon, 1 Jan 2024 23:00 UTC

Eli the Bearded <*@eli.users.panix.com> wrote
in <eli$2312300200@qaz.wtf>:
[...]
# https://qaz.wtf/qz/blosxom/2022/06/02/matchpairs

There's a buglet,
set matchpairs=(:),[:],{:},<,>
should be
set matchpairs=(:),[:],{:},<:>

Regards,

Jens
--
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)

Re: [vim] Side effects of extending 'matchpairs' ?

<un061b$2i6f6$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=100&group=comp.editors#100

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.editors
Subject: Re: [vim] Side effects of extending 'matchpairs' ?
Date: Tue, 2 Jan 2024 06:13:14 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <un061b$2i6f6$1@dont-email.me>
References: <ummqvo$snpl$1@dont-email.me> <umps1u$1clk6$1@dont-email.me>
<umvf9l$2buvc$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 2 Jan 2024 05:13:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ce706dbbfbf50e0f0ea6e7df15331b4d";
logging-data="2693606"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+y9Wy3+fbsAb+F1opZxRDC"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:gDlRLTluHYZj1xczWe9oSK0bGms=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <umvf9l$2buvc$1@dont-email.me>
 by: Janis Papanagnou - Tue, 2 Jan 2024 05:13 UTC

On 01.01.2024 23:45, Janis Papanagnou wrote:
> On 30.12.2023 20:46, Rene Kita wrote:
>> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
>>> For the HTML editing purpose I temporarily change that to
>>>
>>> matchpairs=(:),{:},[:],<:>
>>>
>> I use this for C++ files, no undesired side-effects so far. It works.
>
> This is great! - I didn't think of C++ (despite using it occasionally).

BTW, for C++ it works also nicely on _nested_ template expressions
(like with the other three bracket types). And also Vim's brackets
operator expressions, like y3a( or d2i{ , extend the (, {, [
operations nicely on < as in c2a< .

Janis


computers / comp.editors / [vim] Side effects of extending 'matchpairs' ?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor