Go to vim line from relativenumber to

In a normal situation, you can look at the line number and use [number] G to go to that line. But I like to work with relatitedumber setting. The downside is that I can no longer go to the lines by looking at the displayed line number.

Is it possible to override the behavior of [number] G to fix this? Also, is it possible to make the current line number 1 instead of 0 with relativenumber enabled? And How?

+6
source share
1 answer

You can simply [number]j or [number]k do this.

+12
source

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


All Articles