add: update setting for vscode vim
This commit is contained in:
parent
4291878eff
commit
e05f04677f
@ -2,13 +2,13 @@
|
|||||||
[
|
[
|
||||||
// Editor switch
|
// Editor switch
|
||||||
{
|
{
|
||||||
"key": "ctrl-shift-k",
|
"key": "ctrl-shift-j",
|
||||||
"command": "workbench.action.previousEditorInGroup",
|
"command": "workbench.action.nextEditorInGroup",
|
||||||
"when": "editorTextFocus && !editorReadonly && vim.active"
|
"when": "editorTextFocus && !editorReadonly && vim.active"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "ctrl-shift-j",
|
"key": "ctrl-shift-k",
|
||||||
"command": "workbench.action.nextEditorInGroup",
|
"command": "workbench.action.previousEditorInGroup",
|
||||||
"when": "editorTextFocus && !editorReadonly && vim.active"
|
"when": "editorTextFocus && !editorReadonly && vim.active"
|
||||||
},
|
},
|
||||||
// Move lines up and down
|
// Move lines up and down
|
||||||
@ -22,6 +22,27 @@
|
|||||||
"command": "editor.action.moveLinesUpAction",
|
"command": "editor.action.moveLinesUpAction",
|
||||||
"when": "editorTextFocus && !editorReadonly && vim.active"
|
"when": "editorTextFocus && !editorReadonly && vim.active"
|
||||||
},
|
},
|
||||||
|
// Select up and down
|
||||||
|
{
|
||||||
|
"key": "ctrl+j",
|
||||||
|
"command": "selectNextSuggestion",
|
||||||
|
"when": "suggestWidgetVisible"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+k",
|
||||||
|
"command": "selectPrevSuggestion",
|
||||||
|
"when": "suggestWidgetVisible"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+j",
|
||||||
|
"command": "workbench.action.quickOpenSelectNext",
|
||||||
|
"when": "inQuickOpen"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+k",
|
||||||
|
"command": "workbench.action.quickOpenSelectPrevious",
|
||||||
|
"when": "inQuickOpen"
|
||||||
|
},
|
||||||
// File management
|
// File management
|
||||||
{
|
{
|
||||||
"key": "ctrl+n",
|
"key": "ctrl+n",
|
||||||
@ -34,14 +55,14 @@
|
|||||||
"when": "explorerViewletFocus"
|
"when": "explorerViewletFocus"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "ctrl+shift+e",
|
"key": "escape",
|
||||||
"command": "workbench.action.toggleSidebarVisibility",
|
"command": "workbench.action.toggleSidebarVisibility",
|
||||||
"when": "explorerViewletFocus"
|
"when": "explorerViewletFocus"
|
||||||
},
|
},
|
||||||
// Terminal management
|
// Terminal management
|
||||||
{
|
{
|
||||||
"key": "ctrl+shift+;",
|
"key": "ctrl+shift+;",
|
||||||
"command": "workbench.action.togglePanel",
|
"command": "workbench.action.terminal.toggleTerminal"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "ctrl+shift+n",
|
"key": "ctrl+shift+n",
|
||||||
@ -62,5 +83,20 @@
|
|||||||
"key": "ctrl+shift+k",
|
"key": "ctrl+shift+k",
|
||||||
"command": "workbench.action.terminal.focusPrevious",
|
"command": "workbench.action.terminal.focusPrevious",
|
||||||
"when": "terminalFocus"
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+shift+l",
|
||||||
|
"command": "workbench.action.positionPanelRight",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+shift+j",
|
||||||
|
"command": "workbench.action.positionPanelBottom",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+shift+h",
|
||||||
|
"command": "workbench.action.positionPanelLeft",
|
||||||
|
"when": "terminalFocus"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -18,10 +18,12 @@
|
|||||||
"MD024": false
|
"MD024": false
|
||||||
},
|
},
|
||||||
"editor.minimap.enabled": false,
|
"editor.minimap.enabled": false,
|
||||||
|
// Vim settings
|
||||||
"vim.leader": "<Space>",
|
"vim.leader": "<Space>",
|
||||||
"vim.hlsearch": true,
|
"vim.hlsearch": true,
|
||||||
"vim.easymotion": true,
|
"vim.easymotion": true,
|
||||||
"vim.useSystemClipboard": true,
|
"vim.useSystemClipboard": true,
|
||||||
|
"vim.smartRelativeLine": true,
|
||||||
"vim.normalModeKeyBindings": [
|
"vim.normalModeKeyBindings": [
|
||||||
{
|
{
|
||||||
"before": [
|
"before": [
|
||||||
@ -41,6 +43,15 @@
|
|||||||
"k"
|
"k"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"/",
|
||||||
|
"/"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
":noh"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"before": [
|
"before": [
|
||||||
"<Leader>",
|
"<Leader>",
|
||||||
@ -170,12 +181,21 @@
|
|||||||
{
|
{
|
||||||
"before": [
|
"before": [
|
||||||
"<Leader>",
|
"<Leader>",
|
||||||
"f"
|
"g"
|
||||||
],
|
],
|
||||||
"commands": [
|
"commands": [
|
||||||
"workbench.action.quickOpen"
|
"workbench.action.quickOpen"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"before": [
|
||||||
|
"<Leader>",
|
||||||
|
"f"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"workbench.files.action.showActiveFileInExplorer"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"before": [
|
"before": [
|
||||||
"<Leader>",
|
"<Leader>",
|
||||||
@ -250,6 +270,5 @@
|
|||||||
"editor.action.outdentLines"
|
"editor.action.outdentLines"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"vim.smartRelativeLine": true
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user