Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

ViM: Guideline

📅 2010-Nov-17 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ guidelines, vim ⬩ 📚 Archive

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

© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email