Skip to content

Instantly share code, notes, and snippets.

@lalitmee
Created July 14, 2021 03:14
Show Gist options
  • Save lalitmee/8e1f66804706ab6261c8c956f2179914 to your computer and use it in GitHub Desktop.
Save lalitmee/8e1f66804706ab6261c8c956f2179914 to your computer and use it in GitHub Desktop.
Oni keybindings
[
// See the onivim documentation for details on the format:
// https://onivim.github.io/docs/configuration/key-bindings
// Add key bindings here, for example:
// { "key": "<TAB>", "command": "workbench.action.quickOpen", "when": "editorTextFocus" },
// { "key": "jk", "command": "vim.esc", "when": "insertMode" },
{
"key": "<C-n>",
"command": "selectNextSuggestion",
"when": "editorTextFocus && suggestWidgetVisible"
},
{
"key": "<C-p>",
"command": "selectPrevSuggestion",
"when": "editorTextFocus && suggestWidgetVisible"
},
{
"key": "<C-h>",
"command": "list.collapse",
"when": "listFocus && !inputFocus"
},
{
"key": "<C-l>",
"command": "list.expand",
"when": "listFocus && !inputFocus"
},
{
"key": "<C-n>",
"command": "list.focusDown",
"when": "listFocus && !inputFocus"
},
{
"key": "<C-p>",
"command": "list.focusUp",
"when": "listFocus && !inputFocus"
},
{
"key": "<A-u>",
"command": "editor.action.transformToUppercase"
},
{
"key": "<C-n>",
"command": "showNextParameterHint",
"when": "editorFocus && parameterHintsMultipleSignatures && parameterHintsVisible"
},
{
"key": "<C-p>",
"command": "showPrevParameterHint",
"when": "editorFocus && parameterHintsMultipleSignatures && parameterHintsVisible"
},
{
"key": "<C-n>",
"command": "selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "<C-p>",
"command": "selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "<C-i>",
"command": "acceptSelectedSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "<Leader>x",
"command": ":quit"
},
{
"key": "<Leader>qq",
"command": ":qall"
},
{
"key": "<Leader>w=",
"command": "workbench.action.evenEditorWidths"
},
{
"key": "<Leader>wm",
"command": "workbench.action.maximizeEditor"
},
{
"key": "<Leader>wv",
"command": "view.splitVertical"
},
{
"key": "<Leader>ws",
"command": "view.splitHorizontal"
},
{
"key": "<Leader>wh",
"command": "window.moveLeft"
},
{
"key": "<Leader>wl",
"command": "window.moveRight"
},
{
"key": "<Leader>wj",
"command": "window.moveDown"
},
{
"key": "<Leader>wk",
"command": "window.moveUp"
},
{
"key": "<Leader>wr",
"command": "view.rotateForward"
},
{
"key": "<Leader>wR",
"command": "view.rotateBackward"
},
{
"key": "<Leader>fs",
"command": "workbench.action.files.save",
"when": "editorTextFocus && normalMode"
},
{
"key": "<Leader>fa",
"command": "workbench.action.files.saveAll",
"when": "editorTextFocus && normalMode"
},
{
"key": "<Leader>ee",
"command": "workbench.view.extensions"
},
{
"key": "<Leader>gs",
"command": "workbench.view.scm"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment