VimApi.resetVimGlobalState_ method
VimApi › resetVimGlobalState_
Unofficial
Discard the Vim state shared by every editor and rebuild it, resetting every option to its default.Signature:
resetVimGlobalState_(): voidReturns: void
Remarks:
The CodeMirror 5 manual says options previously set withsetOption are re-applied to the rebuilt state. Obsidian's build does not do that — it assigns each option its declared default, so earlier setOption calls are discarded along with the rest of the state.