80 character line? No problem!
" displays a red column at 80 characters
set colorcolumn=80
Thanks to this stack overflow post.
EDIT: you should probably surround it with an "if exists" to avoid annoyance if you port your .vimrc to another machine that has an older version of vim (colorcolumn is new in 7.3). Here's the syntax:
if exists('+colorcolumn')
set colorcolumn=80
endif
Thanks to this answer on that same stack overflow post.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.