To show a background line in the whole column 9 and 17
:set colorcolumn=9,17or short:set cc=9,17
To change the color to blue:highlight ColorColumn ctermbg=blueshow line in the cursor column
exe 'set cc='.col('.')Source: https://superuser.com/questions/249779/how-to-setup-a-line-length-marker-in-vim-gvim
No comments:
Post a Comment