1

What you are expected to do: set cc=+0 Why your stuff doesn't work: because ordinary :set is executed once, while :autocmd FileType is executed upon each FileType event. Note: your autocmd has all possible "novice bugs" in it. Before doing any stuff with auto-commands you're strongly advised to learn the docs. In particular, always use augroup; ...


1

The colorcolumn setting accepts multiple values, for example set colorcolumn=30,60 will highlight column 30 and 60. You can use this to display a single unbroken line for wrapped lines; for example for a 130-column line on a 40 column display you would use set colorcolumn=30,70,110 to highlight the first three columns. You can set this automatically with a ...


Only top voted, non community-wiki answers of a minimum length are eligible