Add vim bindings for vscode and obsidian
This commit is contained in:
12
.obsidian.vimrc
Normal file
12
.obsidian.vimrc
Normal 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
48
settings.json
Normal 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"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user