Set relativenumbers colors to VIM

I use set relativenumberin VIM and I can not imagine my life without it.

My concern is that the numbers above and below 0 look the same. If I see number 9, I don’t know if I have 9j or 9k to jump there at a glance (and often go in the wrong direction)

Is it possible to have “negative” numbers of a different color from positive numbers, so that I can reveal them faster?

Thank!

+4
source share
1 answer

Not sure if there is a way to isolate it without much effort. What I have to vimrc,

1) highlight the current line

2) also set the number (nu) along with the relative number (rnu), which makes the current line number different. See number 26, for example

enter image description here

+1
source

Source: https://habr.com/ru/post/1695810/


All Articles