Skip to content

VimMotionFn

Unofficial

Implements a motion, working out where the cursor should end up without changing the document. It returns the position the cursor should move to.

The head it is given is the cursor’s current position, which in visual mode can differ from what getCursor('head') reports, and motionArgs is what the key mapping passed through.

Import:

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

Signature:

export interface VimMotionFn

Links to this page: