Wednesday, June 8, 2022

Re: % and matchpairs

On Mon, 6 Jun 2022, "'Grant Taylor' via vim_use" <vim_use@googlegroups.com> wrote:
> #TIL
>
> Thank you for sharing this Eli. I'll be trying ~> using a subset of this.
>
> Aside: How wrong is it that I'm thinking about adding m4's "`" and "'"
> based on file / buffer type? a la. set matchpairs=`:'

Not wrong at all. That's a good idea.

Vaguely related: I wrote my own markup language for my blog posts. It's
a hydrid of Markdown style in-line formatting and *roff style block
formatting. _Italics_ like that, and ".p" / "./p" for open and close
paragraphs, or ".pp" to close a paragraph and start a new one. I use
"set paragraphs=ppp\ hrbri\ d\ /p" to make { and } motions work for that
filetype. "set paragraphs" is highly tuned to *roff style formatting
(namely implied initial period and max of two characters in a label)
which highly reduces the usefulness, but old Unix hands are more likely
to find/use such formatting. But I wrote the markup knowing how "set
paragraphs" works.

(The other entries in there are used for things like horizontal rules,
image tags, and image boxes.)

Elijah

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/4LJCsK3FsmzfYm%40panix5.panix.com.

No comments:

Post a Comment