How can I do something like "for char in string" in Vim script?

vim

Solution

The canonical way is

for s:item in split(s:mylist, '\zs')

Problem

I've come up with this, but is there simple way I'm missing? ``` for s:char in split(s:string, '.\zs\ze.') ```

Original source