Skip to content

VimRegisterController.pushText method

VimRegisterController › pushText

Unofficial

Store text into a register on behalf of an operator, also updating the unnamed and numbered registers the way Vim does.

Signature:

pushText(registerName: string | null | undefined, operator: string, text: string, linewise?: boolean | undefined, blockwise?: boolean | undefined): void

Parameters:

ParameterTypeDescription
registerNamestring | null | undefinedThe register to write to, or null or undefined for the unnamed register.
operatorstringThe operator the text came from, which decides how the numbered registers shift.
textstringThe text to store.
linewise?boolean | undefinedWhether the text is linewise.
blockwise?boolean | undefinedWhether the text is blockwise.

Returns: void