I am using a vimscript to "highlight" columns of interest in some text.
However, using colorcolumn
"highlights" the entire column on every row in the file.
Is there a good way to define start and end rows for the colorcolumn
to be applied on?
More information: 1. I know the row numbers I would like to highlight , so the solution should be based on row numbers. 2. I expect this to be a buffer and/or window setting , not a global setting.
Thanks
built-in
colorcolumn it is not possible do to what you want: you will need to find a custom solution. How do you want to define the start and end rows for your highlighting? With line numbers, with a pattern, with a text object, should it be local to window likecolorcolumn
, or should it be a global setting, or a buffer local setting? Your question might need some extra details so that others can answer you :)\%c
or\%v
regex atoms.