Skip to content

VimMotionArgs

Unofficial

Arguments describing how a Vim motion should move the cursor.

Every field is optional because a key mapping only supplies the ones its motion cares about. The resolved form handed to a motion handler always carries a repeat, modelled by VimResolvedMotionArgs.

Import:

import type { VimMotionArgs } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface VimMotionArgs

Properties

PropertyTypeDescription
bigWord?booleanWhether the motion operates on WORDs (whitespace-delimited) rather than words.
explicitRepeat?booleanWhether the motion consumes a repeat count typed before it.
forward?booleanWhether the motion moves towards the end of the document.
inclusive?booleanWhether the character under the resulting cursor position is part of the motion's range.
linewise?booleanWhether the motion covers whole lines rather than a character range.
noRepeat?booleanWhether the motion refuses to be repeated by a count.
repeat?numberHow many times the motion is applied.
repeatIsExplicit?booleanWhether the repeat count was typed by the user rather than defaulted.
repeatOffset?numberOffset applied to the repeat count before the motion runs.
sameLine?booleanWhether the motion is confined to the line it started on.
selectedCharacter?stringThe character the motion searches for, for character-search motions such as f and t.
textObjectInner?booleanWhether a text-object motion selects the inner range, excluding its delimiters.
toFirstChar?booleanWhether the motion lands on the first non-whitespace character of the target line.
toJumplist?booleanWhether the position the motion started from is pushed onto the jump list.
wordEnd?booleanWhether a word motion lands on the end of the word rather than its start.

Links to this page: