user1637056
user1637056

Reputation: 422

set relativenumbers colors in VIM

I use set relativenumber in VIM, and cannot imagine my life without it.

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

Is it possible to have the "negative" numbers a different color from the positive numbers, so I can tell them apart faster?

Thanks!

Upvotes: 5

Views: 699

Answers (1)

dlmeetei
dlmeetei

Reputation: 10391

Not sure if there is a way highlight it without much work. What I do have in my vimrc is

1) highlight the current line

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

enter image description here

Upvotes: 1

Related Questions