This may seem like a simple question but I've probably spent hours looking for this to no avail. How do I create a colored line on the right of line numbers in Vim? Like this:

Not sure about the line, but you can change the foreground color to add some contrast.
From http://vim.wikia.com/wiki/Display_line_numbers:
You can change the color used for the line numbers. For example:
:highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With