Skip to content

VimOperatorArgs

Unofficial

Arguments describing how a Vim operator transforms the range a motion selected.

Import:

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

Signature:

export interface VimOperatorArgs

Properties

PropertyTypeDescription
fullLine?booleanWhether the operator consumes the whole line including its terminator, rather than stopping at the last character.
indentRight?booleanWhether an indent operator adds indentation. false removes it.
keepCursor?booleanWhether the cursor stays where it was instead of moving to the start of the affected range.
lastSel?VimLastSelectionRangeThe previous visual selection, for operators that repeat it.
linewise?booleanWhether the operator applies to whole lines rather than a character range.
registerName?null | stringThe register the operator reads from or writes to. Defaults to the unnamed register.
repeat?numberHow many times the operator is applied.
selectedCharacter?stringThe character the operator was given, for operators such as r that take one.
shouldMoveCursor?booleanWhether the cursor moves to the end of the affected range once the operator has run.
toLower?booleanWhether a case-changing operator makes the text lower case. false makes it upper case, and omitting it toggles the case of each character.

Links to this page: