Quantcast
Channel: chooru::code » guideline
Viewing all articles
Browse latest Browse all 2

How to show colorcolumn only in insert mode of Vim

$
0
0

I like to have the colorcolumn enabled in Vim. I use it as a guideline to remind me when my code line is too long or nesting is too deep. As such, it is useful only in insert mode and is distracting the rest of the time.

To show colorcolumn only in insert mode, add this to your vimrc:

The number assigned to colorcolumn is the column at which the guideline is drawn. 0 means no guideline is displayed.

Tried with: Vim 7.3 and Ubuntu 12.04 LTS



Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images