match string in part of List buffer starting at index

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

match string in part of List buffer starting at index

Ni Va
Hi,

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

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 the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/57cf79c9-4af4-48bf-9e7d-814950576a4c%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: match string in part of List buffer starting at index

Shlomi Fish-2
On Thu, 16 Jan 2020 23:48:00 -0800 (PST)
Ni Va <[hidden email]> wrote:

> Hi,
>
> Would like to match a string onto a part of List starting to Nth index ?
>
> Thank you
>

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 .

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200117104022.52932702%40telaviv1.shlomifish.org.
Reply | Threaded
Open this post in threaded view
|

Re: match string in part of List buffer starting at index

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

Le vendredi 17 janvier 2020 09:40:36 UTC+1, Shlomi Fish a écrit :
On Thu, 16 Jan 2020 23:48:00 -0800 (PST)
Ni Va <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="uM3AlwZ0DAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">niva...@...> wrote:

> Hi,
>
> Would like to match a string onto a part of List starting to Nth index ?
>
> Thank you
>

Hi,

what do you mean?

--

Shlomi Fish       <a href="https://www.shlomifish.org/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.shlomifish.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESM3IYNu5tnDlsObYm7eB3vhR3Ww&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.shlomifish.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESM3IYNu5tnDlsObYm7eB3vhR3Ww&#39;;return true;">https://www.shlomifish.org/
Let’s talk about restores instead of backups - <a href="http://is.gd/WatQqu" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fis.gd%2FWatQqu\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGjZwi_yNpErJSOpNGAckHX6S7sOw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fis.gd%2FWatQqu\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGjZwi_yNpErJSOpNGAckHX6S7sOw&#39;;return true;">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 - <a href="http://shlom.in/reply" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fshlom.in%2Freply\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHtJ0EJvka-JEYZfeWB-hESNrM5_w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fshlom.in%2Freply\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHtJ0EJvka-JEYZfeWB-hESNrM5_w&#39;;return true;">http://shlom.in/reply .

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/9453d610-6cbf-4803-8a5b-bd27bd6c1dcd%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: match string in part of List buffer starting at index

Shlomi Fish-2
On Fri, 17 Jan 2020 04:42:30 -0800 (PST)
Ni Va <[hidden email]> wrote:

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

Try using
https://learnvimscriptthehardway.stevelosh.com/chapters/27.html#joining or a
loop or whatever.
 

> Le vendredi 17 janvier 2020 09:40:36 UTC+1, Shlomi Fish a écrit :
> >
> > On Thu, 16 Jan 2020 23:48:00 -0800 (PST)
> > Ni Va <[hidden email] <javascript:>> wrote:
> >  
> > > Hi,
> > >
> > > Would like to match a string onto a part of List starting to Nth index ?
> > >
> > > Thank you
> > >  
> >
> > 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 
> > .
> >  
>



--

Shlomi Fish       https://www.shlomifish.org/
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/

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

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200117165201.24c9fbe3%40telaviv1.shlomifish.org.
Reply | Threaded
Open this post in threaded view
|

Re: match string in part of List buffer starting at index

Andy Wokula
In reply to this post by Ni Va
Am 17.01.2020 um 08:48 schrieb Ni Va:
> Hi,
>
> Would like to match a string onto a part of List starting to Nth index ?
>
> Thank you

Check out match(), matchstr(), matchstrpos() etc with List argument for {expr}
and {start} index.

--
Andy

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5E21D40F.8050008%40yahoo.de.
Reply | Threaded
Open this post in threaded view
|

Re: match string in part of List buffer starting at index

Ni Va
It's done. Thank you

Le ven. 17 janv. 2020 à 16:34, 'Andy Wokula' via vim_use <[hidden email]> a écrit :
Am 17.01.2020 um 08:48 schrieb Ni Va:
> Hi,
>
> Would like to match a string onto a part of List starting to Nth index ?
>
> Thank you

Check out match(), matchstr(), matchstrpos() etc with List argument for {expr}
and {start} index.

--
Andy

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5E21D40F.8050008%40yahoo.de.

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAOKxv4EK-VDpCGy-yR-ULxGqeSVmccHWU5PFWWTAZdpfueP5qQ%40mail.gmail.com.