Collecting my attempts to improve at tech, art, and life

Stupid VS Code Vim Tricks

Tags: vs-code config

Still trying my experiment with using Dendron in VS 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 key bindings to add a few.

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.


Got a comment? A question? More of a comment than a question?

Talk to me about this page on: linkedin mastodon

Added to vault 2024-01-15. Updated on 2024-02-04