13. Using relative line numbers
Your Neovim terminal supports line numbers with the following settings:
set number
As you get more advanced in Neoim, you will look for ways to move vertically faster. One way to do this is to explicitly specify the line number you want to move to. This is easier with relative line numbers:
set number
set relativenumber
How does this work? The row the cursor is currently on will be marked as βrow 0β. The rest of the rows above and below will be numbered relative to their distance from row 0. For example, the row directly below the cursor will be row 1. So will the row directly above it. To go to row 1 below, enter the number 1 + j
. To go to row 1 above, enter the number 1 + k
.
Copyright Β© 2024 - 2025 π ApolloNvim / LukΓ‘Ε‘ KaΕka