I'm trying to join a list within a function like this:

let mylist=split(globpath(&rtp, 'custompath/*'))

But I'm getting:

E492: Not an editor command:     mylist=join(mylist,"\n")

I'm sure I'm missing something fundamental...


mylist=.. is not a command. You want to let the variable, e.g. let mylist=...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.