Thursday, September 10, 2020

Re: Matching « and »

On Mi, 09 Sep 2020, Eli the Bearded wrote:

> gevisz <gevisz@gmail.com> wrote:
> > What line(s) of code should I add to my vimrc so that ci« behave in
> > the same way with respect to « and », as ci( behaves with respect to (
> > and )?
>
> Hmmm. "set matchpairs=(:),{:},[:],<:>,«:»" works fine for %, but it
> appears that i(, i<, i{, a(, and the like are special movements, not
> just keying off matchpairs.
>
> Would it be possible to make the iX and aX family of motions use that
> setting too? That's probably the more general fix.

There is a patch floating around, to easily define text objects
delimited by the same character. I believe the latest version is here:
https://github.com/vim/vim/pull/958

But that does not handle a begin/end separator character.

Best,
Christian
--
Hardware scheppert, wenn man dagegen tritt.

--
--
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/20200910073608.GE8698%40256bit.org.

No comments: