> :echo ListOfMatches("abracadabra","a.")
>
> ['ab', 'ac', 'ad', 'ab']

Not so efficient, but:

echo map(split('abracadabra', '\zea.'), 'matchstr(v:val, ''a.'')')

Maybe, one could call such a function scan().


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui