Stupid VS Code Vim Tricks
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.
{
"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"]
}
]
}
vim.leader
is handy as a prefix for extended custom bindings in Vim; I prefer the spacebar as my leader<leader> t l
toggles my left sidebar<leader> t r
toggles my right sidebar<leader> t t
toggles between light and dark theme
These bindings look and work very similar to some of Logseq’s default bindings. That’s no accident. I like those bindings.