3

Is it possible to comment out one element of a multiline list? Or, in general, can you combine line continuations with comments?

(Lightly modified from my vimrc)

[
    \'eslint',
    \'tsserver',
    \'xo'
\]
0az
  • 133
  • 4

1 Answers1

4

Or, in general, can you combine line continuations with comments?

Yes, but it must consist of three symbols (see :h line-continuation-comment): quote, backslash and space.

As it stands in your example code right now, it won't work.

The following will work:

[
    "\ 'eslint',
    \'tsserver',
    \'xo'
\]
filbranden
  • 28,785
  • 3
  • 26
  • 71
Matt
  • 20,685
  • 1
  • 11
  • 24
  • 1
    Honestly, I'm not sure why I didn't notice that while scrolling down. Thanks. At the very least, this should be easily searchable now. – 0az Mar 19 '20 at 06:19