Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>op.relativenumber

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
variable op.relativenumber
import { op } from "https://deno.land/x/ddc_vim@v3.8.0/deps.ts";
const { relativenumber } = op;

Show the line number relative to the line with the cursor in front of each line. Relative line numbers help you use the count you can precede some vertical motion commands (e.g. j k + -) with, without having to calculate it yourself. Especially useful in combination with other commands (e.g. y d c < > gq gw =). When the 'n' option is excluded from 'cpoptions' a wrapped line will not use the column of line numbers (this is the default when 'compatible' isn't set). The 'numberwidth' option can be used to set the room used for the line number. When a long, wrapped line doesn't start with the first character, '-' characters are put before the number. See hl-LineNr and hl-CursorLineNr for the highlighting used for the number.

The number in front of the cursor line also depends on the value of 'number', see number_relativenumber for all combinations of the two options.

(default off)

type

LocalOption<boolean>