Skip to main content
Module

x/ddc_vim/deps.ts>fn.getregtype

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.getregtype
import { fn } from "https://deno.land/x/ddc_vim@v4.0.3/deps.ts";
const { getregtype } = fn;

The result is a String, which is type of register {regname}. The value will be one of: "v" for characterwise text "V" for linewise text "<CTRL-V>{width}" for blockwise-visual text "" for an empty or unknown register <CTRL-V> is one character with value 0x16. The {regname} argument is a string. If {regname} is "", the unnamed register '"' is used. If {regname} is not specified, v:register is used. In Vim9-script {regname} must be one character.

Can also be used as a method:

GetRegname()->getregtype()

Parameters

denops: Denops
optional
regname: unknown

Returns

Promise<string>