Skip to main content
Module

x/ddc_vim/deps.ts>op.relativenumber

Dark deno-powered completion framework for neovim/Vim
Latest
variable op.relativenumber
import { op } from "https://deno.land/x/ddc_vim@v4.3.1/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>