I have this list :
let myList1 = ["short-term"]
And I want to get this second list with my first :
let myList2 = ["short", "term"]
using
for elem in myList1
let myList2 = []
code ???????????/\=add(myList2, submatch(0)
endfor
Can you help me, please ?
call extend(myList2, split(elem, "-"))
, does that do what you want?