Highlight left and right vim footer

I need to highlight something behind column 72 with a different background color. What is the best method? Something similar to the visible field border that some editors do is also good. Is it possible?

Some background:

The syntax is similar to Pascal and works correctly.

Only the background needs to be changed. The foreground is already highlighted, as it should be. There are times when a row will contain more than 80 characters and will skip the limit of 72 columns and should be highlighted as a string.

Coding standards are similar to COBOL, and all characters behind column 72 must contain comment lines. These comments in column 72 begin with the start character of the comment and are correctly highlighted.

+1
source share
1 answer

You can

:match DiffAdd '\%>72v.*' 

which will highlight characters you don't want.

(adapted from here ).

+3
source

All Articles