Thursday, 28 April 2011

gvim neat coding style

Often working in GUI mode, I can not help to overflow "standard" good practice of sticking to the 80 char columns. So gvim comes for rescue set this up in your ~/.gvimrc or ~/.vimrc file and it will highlight the text which you overflow to aid visually:

highlight OverLength ctermbg=red ctermfg=white guibg=#592929
match OverLength /\%81v.\+/

vim never lets me down and keeps on bringing surprises on its customizability ;)

Ref: http://stackoverflow.com/questions/235439/vim-80-column-layout-concerns

No comments:

Post a Comment