Wednesday, March 25, 2026

Re: pattern syntax for match()


tim / christian

thank you.  both forms work as expected:  single and double quoted forms.  in all of my quoting permutations, i had been escaping the bar, also.

works fine, now.  many thanks.


On March 25, 2026 12:41:15 PM PDT, Christian Brabandt <cblists@256bit.org> wrote:

On Mi, 25 Mär 2026, Tim Chase wrote:

On 2026-03-25 12:01, S. Cowles wrote:
i would like to do the following operation:
let m = match( "foo" , "foo\|beep" )
however, i get no match. (m is (-1).)
what is the correct pattern syntax to enable this match?

Because they're strings, do you need to escape the "\", making it

let m = match( "foo" , "foo\\|beep" )

Or a bit more readable, use single quotes instead.

Thanks,
Christian
--
scowles@sonic.net
+1 510 380 8661

Re: pattern syntax for match()

On Mi, 25 Mär 2026, Tim Chase wrote:

> On 2026-03-25 12:01, S. Cowles wrote:
> > i would like to do the following operation:
> > let m = match( "foo" , "foo\|beep" )
> > however, i get no match. (m is (-1).)
> > what is the correct pattern syntax to enable this match?
>
> Because they're strings, do you need to escape the "\", making it
>
> let m = match( "foo" , "foo\\|beep" )

Or a bit more readable, use single quotes instead.

Thanks,
Christian
--
Are we not men?

--
--
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 visit https://groups.google.com/d/msgid/vim_use/acQ6W0dcgdWjG1p2%40256bit.org.

Re: pattern syntax for match()

On 2026-03-25 12:01, S. Cowles wrote:
> i would like to do the following operation:
> let m = match( "foo" , "foo\|beep" )
> however, i get no match. (m is (-1).)
> what is the correct pattern syntax to enable this match?

Because they're strings, do you need to escape the "\", making it

let m = match( "foo" , "foo\\|beep" )

-tim
--





--
--
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 visit https://groups.google.com/d/msgid/vim_use/acQ5bWo0u3TymbWb%40thechases.com.

pattern syntax for match()

i would like to do the following operation:
let m = match( "foo" , "foo\|beep" )
however, i get no match. (m is (-1).)
what is the correct pattern syntax to enable this match?
i am running vim:
VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Mar 25 2026 09:59:45)
Included patches: 1-240
Huge version with GTK3 GUI.

thanks.

--
s. cowles
scowles at sonic dot net
Key fingerprint = 6DEC FF05 6952 3967 BE66 1BBD 588D 8B40 EFB8 4AA2


--
--
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 visit https://groups.google.com/d/msgid/vim_use/ca2d97a1-0097-72ab-6646-92670559e880%40sonic.net.

Monday, March 23, 2026

Re: issues posting to the dev list

On Mo, 23 Mär 2026, Eli the Bearded wrote:

> Someone in comp.editors is reporting that attempts to post to Vim Dev
> list (<vim_dev@googlegroups.com> and <vim-dev@vim.org>) are bouncing
> with Google errors:
>
> "We're writing to let you know that the group you tried to
> contact (vim_dev) may not exist, or you may not have permission
> to post messages to the group. A few more details on why you
> weren't able to post:
> * You might have spelled or formatted the group name incorrectly.
> * The owner of the group may have removed this group.
> * You may need to join the group before receiving permission to post.
> * This group may not be open to posting.
> If you have questions related to this or any other Google Group,
> visit the Help Center at https://groups.google.com/support/."
>
> Subscribing to the list works, but doesn't fix the problem.
>
> Anyone running that list and able to read/post to Usenet still?
>
> From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
> Newsgroups: comp.editors
> Subject: Vim mailing list
> Date: Sun, 22 Mar 2026 03:38:27 +0100
> Message-ID: <10pnkn3$2utmg$1@dont-email.me>
>
> I suggested the google version of the list address and don't have
> any other concrete suggestions.

I cannot see a member with that name or E-Mail address in either the
vim_use or vim_dev list. You can direct him to me, but my possibilities
are limited. Google groups is a free service but also has no real
support unfortunately.

Thanks,
Christian
--
Contestants have been briefed on some questions before the show.

--
--
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 visit https://groups.google.com/d/msgid/vim_use/acGsKh6BOvvUbClB%40256bit.org.

issues posting to the dev list

Someone in comp.editors is reporting that attempts to post to Vim Dev
list (<vim_dev@googlegroups.com> and <vim-dev@vim.org>) are bouncing
with Google errors:

"We're writing to let you know that the group you tried to
contact (vim_dev) may not exist, or you may not have permission
to post messages to the group. A few more details on why you
weren't able to post:
* You might have spelled or formatted the group name incorrectly.
* The owner of the group may have removed this group.
* You may need to join the group before receiving permission to post.
* This group may not be open to posting.
If you have questions related to this or any other Google Group,
visit the Help Center at https://groups.google.com/support/."

Subscribing to the list works, but doesn't fix the problem.

Anyone running that list and able to read/post to Usenet still?

From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.editors
Subject: Vim mailing list
Date: Sun, 22 Mar 2026 03:38:27 +0100
Message-ID: <10pnkn3$2utmg$1@dont-email.me>

I suggested the google version of the list address and don't have
any other concrete suggestions.

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 visit https://groups.google.com/d/msgid/vim_use/4ffkVk4CDPzfYm%40panix5.panix.com.

Sunday, March 22, 2026

Re: Ctrl+PageUp in 9.2.0204

On 2026-03-20, Christian Brabandt wrote:
> On Fr, 20 M�r 2026, jazztickets wrote:
>
> > For me the issue is still happening in 9.2.209 on the terminals I've
> > tried: xterm, xfce, gnome console, gnome terminal. It is working
> > however on Konsole, which also worked in 9.2.204.
>
> Thanks, let me ping the author

Patch 9.2.0229 seems to have fixed it. Thanks!

Regards,
Gary

--
--
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 visit https://groups.google.com/d/msgid/vim_use/20260322222903.GG10946%40phoenix.