Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim line between code and line number

Tags:

vim

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:

enter image description here

like image 863
Mike Funk Avatar asked Jan 19 '26 09:01

Mike Funk


1 Answers

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
like image 56
Ruslan Osipov Avatar answered Jan 22 '26 07:01

Ruslan Osipov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!