ViM: Guideline

[ ViM with colorcolumn at 80 ]

Visual Studio has the guideline feature which displays a vertical line at the column specified. This acts as an useful visual indicator of line width while coding.

ViM did not have any straightforward way to do this until now. With the recently released ViM 7.3, one can turn on one or more colored columns using the colorcolumn setting. For example, to turn on the colored column at width 80, use:

:set colorcolumn=80
Advertisements

4 thoughts on “ViM: Guideline

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.