Skip to content

Commit f0fa8c3

Browse files
committed
Update max line indicator docs, clarification
Make it clear that "line" and "fill" highlight all lines, whereas "exceeding" and "fillexceeding" only highlight lines that exceed max line length. Also, correct description of "none" value, which was no longer accurate as it referred to any value other than "line" or "fill" having equivalent behaviour.
1 parent 53f2344 commit f0fa8c3

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

doc/editorconfig.txt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ are "line", "fill", "exceeding" and "fillexceeding", otherwise there will be
128128
no max line indicator.
129129

130130
"line": the right column of the max line length column will be
131-
highlighted, by adding "+1" to 'colorcolumn'.
131+
highlighted on all lines, by adding +1 to 'colorcolumn'.
132132

133133
"fill": all the columns to the right of the max line length
134-
column will be highlighted, by setting 'colorcolumn' to
135-
a list of numbers starting from "max_line_length + 1" to
136-
the number of columns on the screen.
134+
column will be highlighted on all lines, by setting
135+
'colorcolumn' to a list starting from "max_line_length +
136+
1" to the number of columns on the screen.
137137

138138
"exceeding": the right column of the max line length column will be
139139
highlighted on lines that exceed the max line length, by
@@ -143,10 +143,9 @@ no max line indicator.
143143
column will be highlighted on lines that exceed the max
144144
line length, by adding a match for the ColorColumn group.
145145

146-
"none": no max line length indicator will be shown. This is the
147-
recommended value when you do not want any indicator to
148-
be shown, but values other than "line" or "fill" would
149-
also work as "none".
146+
"none": no max line length indicator will be shown. Recommended
147+
when you do not want any indicator to be shown, but any
148+
value other than those listed above also work as "none".
150149

151150
To set this option, add any of the following lines to your |vimrc| file:
152151
>

0 commit comments

Comments
 (0)