vim go to line number code example
Example 1: lua wrap number
local function wrap(x_max, x_min, x)
return (((x - x_min) % (x_max - x_min)) + (x_max - x_min)) % (x_max - x_min) + x_min;
end
Example 2: vi line number
set number
set nonumber
Example 3: vim move to specific line
# Basic syntax:
<number>+G # In Vi/Vim, type a number and hold down shift+g
# Example usage:
50G # Moves you to line 50 in the document
Example 4: vim show line numbers
:set number