Stupid VS Code Vim Tricks

note vs-code config

Still trying my experiment with using Dendron in Visual Studio Code as part of some sort of public second brain. Honestly I don’t know how long that’ll last, so I figure better share the fun stuff I learn here too.

Anyways this afternoon I installed the Vim extension and learned just enough about custom keybindings to add a few.

Code sample
settings.json
    {
  "vim.leader": "<space>",
  "vim.normalModeKeyBindings": [
    {
      "before": ["<leader>", "t", "l"],
      "commands": ["workbench.action.toggleSidebarVisibility"]
    },
    {
      "before": ["<leader>", "t", "r"],
      "commands": ["workbench.action.toggleAuxiliaryBar"]
    },
    {
      "before": ["<leader>", "t", "t"],
      "commands": ["workbench.action.toggleLightDarkThemes"]
    }
  ]
}
  

These bindings look and work very similar to some of Logseq’s default bindings. That’s no accident. I like those bindings.