Vertical line for suggested max line width

Highlighting a column is the usual way to proceed in terminal-based editors. An alternative (which I find more pleasing) is to highlight a series of columns to create a colored pane on the right. For example:

Doing so requires looping over a set of column indices. Usually you would need to shell out for the loop, but here is an alternative without shell calls. The script makes uses of almr’s looping techniques:

The script is a zipped text file:

divider.zip (669 Bytes)

2 Likes