0

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

let mylist=split(globpath(&rtp, 'custompath/*'))
mylist=join(mylist,"\n")

But I'm getting:

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

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

1 Answer 1

3

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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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