Skip to content

VimRegister

Unofficial

One Vim register, holding yanked or deleted text along with how it should be pasted back.

Import:

import type { VimRegister } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface VimRegister

Properties

PropertyTypeDescription
blockwisebooleanWhether the register's text is pasted as a rectangular block.
insertModeChangesVimInsertModeChanges[]The insert-mode sessions recorded into this register, for macro playback.
keyBufferstring[]The register's text, stored as the pieces it was built from.
linewisebooleanWhether the register's text is pasted on its own lines rather than inline.
searchQueriesstring[]The search queries recorded into this register, for macro playback.

Methods

MethodReturnsDescription
clear()voidDiscard everything the register holds.
pushInsertModeChanges(changes)voidAppend a recorded insert-mode session to the register.
pushSearchQuery(query)voidAppend a recorded search query to the register.
pushText(text, linewise?)voidAppend text to the register, keeping what is already there.
setText(text?, linewise?, blockwise?)voidReplace everything the register holds with the given text.
toString()stringGet the register's text as a single string.

Links to this page: