VimGlobalState
Unofficial
The Vim state shared by every editor: registers, macros, search and command history, and the jump list.
Import:
import type { VimGlobalState } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface VimGlobalStateProperties
| Property | Type | Description | |
|---|---|---|---|
| exCommandHistoryController | VimHistoryController | The history of the Ex command prompt. | |
| isReversed? | boolean | Whether the active search runs towards the start of the document. Read and written through the per-editor search state. | |
| jumpList | VimJumpList | The ring buffer of positions jumped from. | |
| lastCharacterSearch | VimLastCharacterSearch | The most recent character search, so ; and , can repeat it. | |
| lastSubstituteReplacePart | string | undefined | The replacement text of the last :substitute, so a later one can reuse it. | |
| macroModeState | VimMacroModeState | Macro recording and playback state. | |
| query? | null | RegExp | The active search query. Read and written through the per-editor search state. | |
| registerController | VimRegisterController | Every register, and the routing that decides which one an operator uses. | |
| searchHistoryController | VimHistoryController | The history of the search prompt. | |
| searchIsReversed | boolean | Whether the last search ran towards the start of the document. | |
| searchQuery | null | RegExp | The query the last search ran with, or null when nothing has been searched for yet. |
Links to this page: