Does Vimscript allow for this notation style when creating a list?
let mylist = [
"a",
"b",
"c"
]
Or is it confined to one-liners (let mylist = [ "a", "b", "c" ]
)?
I'm writing a list that I can easily foresee adding elements to later.
You can make a statement in vimscript span multiple lines by adding a \
to the start of the next line
let mylist = [
\"a",
\"b",
\"c",
\]
This is covered in :help line-continuation
(doc)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With