[Space-Script] Enable vim mode by default

Looking for guidance on enabling vim mode by default.

I looked for an option in !SETTINGS but didn’t see it. Maybe a smart script?

Appreciate your time and guidance.

May have answered my own question. I took a shot in the dark and modeled a vim mode smart script after the dark mode smart script posted HERE. Seems to be working.

silverbullet.registerEventListener({name: "editor:init"}, async () => {
  if(!await clientStore.get("vimMode")) {
    await clientStore.set("vimMode", true);
    await editor.reloadUI();
  }
});

If there is a better way, please share.

Does anyone know if this is still the best way? If there is a config.set { vim = section in CONFIG, will SB default to using vim? Or is there a better way to set this at startup?

AFAICT, vim mode persists across sessions. So perhaps the way is to simply set it manually once instead of via a config?