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?
In comp.editors, Janis Papanagnou <[email protected]> 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.
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 Papanagnou <[email protected]> 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.
On 30.12.2023 20:46, Rene Kita wrote:
Janis Papanagnou <[email protected]> wrote:
For the HTML editing purpose I temporarily change that toI use this for C++ files, no undesired side-effects so far. It works.
matchpairs=(:),{:},[:],<:>
This is great! - I didn't think of C++ (despite using it occasionally).
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 716 |
| Nodes: | 16 (3 / 13) |
| Uptime: | 53:04:53 |
| Calls: | 12,116 |
| Calls today: | 7 |
| Files: | 15,010 |
| Messages: | 6,518,599 |
| Posted today: | 2 |