DEV Community

Mike Lezhnin
Mike Lezhnin

Posted on

Vim black magic

I am watching More Instantly Better Vim by Damian Conway and he has a nice piece of code to put into vimrc of yours and your friends:

highlight ColorColumn ctermbg=16 ctermfg=green
exec 'set colorcolumn=' . join(range(1,80,4), ',')
Enter fullscreen mode Exit fullscreen mode

Makes your python code look all cool like so:
Alt Text
Grab while it's hot!

Top comments (1)

Collapse
 
nirlanka profile image
Nir Lanka ニル • Edited

Aptly named "black magic"! Haha
Thanks! This is pretty useful for me actually.