Add vim bindings for vscode and obsidian

This commit is contained in:
five-hundred-eleven
2025-04-17 21:04:31 -04:00
parent 98302ad5fb
commit fcaea15768
2 changed files with 60 additions and 0 deletions

12
.obsidian.vimrc Normal file
View File

@@ -0,0 +1,12 @@
exmap quickswitchplus obcommand darlal-switcher-plus:switcher-plus:open
nmap \f :quickswitchplus<CR>
exmap back obcommand app:go-back
nmap gb :back<cr>
exmap forward obcommand app:go-forward
nmap gn :forward<cr>
exmap followlink obcommand editor:open-link-in-new-leaf
nmap gd :followlink<cr>
exmap tableft obcommand workspace:previous-tab
nmap gth tableft<cr>
exmap tabright obcommand workspace:next-tab
nmap gtl tabright<cr>

48
settings.json Normal file
View File

@@ -0,0 +1,48 @@
{
"vim.easymotion": true,
"vim.incsearch": true,
"vim.smartcase": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": false,
"vim.hlsearch": true,
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["g", "b"],
"commands": ["workbench.action.navigateBack"],
"silent": false
},
{
"before": ["g", "n"],
"commands": ["workbench.action.navigateForward"],
"silent": false
},
{
"before": ["<leader>", "g"],
"commands": ["workbench.action.findInFiles"],
"silent": false
},
{
"before": ["<leader>", "f"],
"commands": ["workbench.action.quickOpen"],
"silent": false
},
{
"before": ["<leader>", "c"],
"commands": ["workbench.action.gotoSymbol"]
},
{
"before": ["<leader>", "r"],
"commands": ["references-view.findReferences"],
"silent": false
},
{
"before": ["g", "d"],
"commands": ["editor.action.revealDefinition"],
"silent": false
},
{
"before": ["g", "t", "l"],
"commands": ["workbench.action.focusActiveEditorGroup"]
}
]
}