match string in part of List buffer starting at index

已查看 13 次
跳至第一个未读帖子

Ni Va

未读,
2020年1月17日 02:48:002020/1/17
收件人 vim_use
Hi,

Would like to match a string onto a part of List starting to Nth index ?

Thank you

Shlomi Fish

未读,
2020年1月17日 03:40:362020/1/17
收件人 Ni Va、vim...@googlegroups.com
Hi,

what do you mean?

--

Shlomi Fish https://www.shlomifish.org/
Let’s talk about restores instead of backups - http://is.gd/WatQqu

Attention: There will be a rain dance Friday night, weather permitting.
— Source unknown, via Nadav Har’El.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

Ni Va

未读,
2020年1月17日 07:42:312020/1/17
收件人 vim_use
That sort of thing
match(s:buffer[startidx : ]

Shlomi Fish

未读,
2020年1月17日 09:52:142020/1/17
收件人 Ni Va、vim...@googlegroups.com
On Fri, 17 Jan 2020 04:42:30 -0800 (PST)
Ni Va <niva...@gmail.com> wrote:

> That sort of thing
> match(s:buffer[startidx : ]
>

Try using
https://learnvimscriptthehardway.stevelosh.com/chapters/27.html#joining or a
loop or whatever.
Interview with Ben Collins-Sussman - https://shlom.in/sussman

Chuck Norris killed the fat lady before she could sing.
http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Andy Wokula

未读,
2020年1月17日 10:34:532020/1/17
收件人 vim...@googlegroups.com
Check out match(), matchstr(), matchstrpos() etc with List argument for {expr}
and {start} index.

--
Andy

Ni Va

未读,
2020年1月17日 11:42:202020/1/17
收件人 vim...@googlegroups.com
It's done. Thank you

--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/KNLKeofTK-g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5E21D40F.8050008%40yahoo.de.
回复全部
回复作者
转发
0 个新帖子