Skip to content

Instantly share code, notes, and snippets.

@bledidalipaj
Last active September 6, 2025 17:08
Show Gist options
  • Save bledidalipaj/b4fe3646a78e6a6f8ac7f2f601f6fb05 to your computer and use it in GitHub Desktop.
Save bledidalipaj/b4fe3646a78e6a6f8ac7f2f601f6fb05 to your computer and use it in GitHub Desktop.

Revisions

  1. bledidalipaj revised this gist Sep 6, 2025. 1 changed file with 0 additions and 6 deletions.
    6 changes: 0 additions & 6 deletions keybindings.json
    Original file line number Diff line number Diff line change
    @@ -26,12 +26,6 @@
    "command": "editor.action.moveLinesUpAction",
    "when": "vim.mode == 'VisualLine' && editorTextFocus"
    },
    {
    "key": "g i",
    "command": "editor.action.goToImplementation",
    "when": "editorTextFocus && vim.mode == 'Normal'"
    },

    // File Explorer
    {
    "key": "r",
  2. bledidalipaj revised this gist Sep 6, 2025. 1 changed file with 8 additions and 3 deletions.
    11 changes: 8 additions & 3 deletions keybindings.json
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,11 @@
    "when": "(vim.mode == 'Normal' || vim.mode == 'Visual') && (editorTextFocus || !inputFocus)"
    },
    // Coding
    {
    "key": "ctrl+shift+k",
    "command": "editor.action.showHover",
    "when": "vim.mode == 'Normal' && editorTextFocus"
    },
    {
    "key": "shift-j",
    "command": "editor.action.moveLinesDownAction",
    @@ -22,9 +27,9 @@
    "when": "vim.mode == 'VisualLine' && editorTextFocus"
    },
    {
    "key": "ctrl+shift+k",
    "command": "editor.action.showHover",
    "when": "vim.mode == 'Normal' && editorTextFocus"
    "key": "g i",
    "command": "editor.action.goToImplementation",
    "when": "editorTextFocus && vim.mode == 'Normal'"
    },

    // File Explorer
  3. bledidalipaj revised this gist Oct 19, 2024. 1 changed file with 78 additions and 1 deletion.
    79 changes: 78 additions & 1 deletion keybindings.json
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,86 @@
    [
    // Navigation
    {
    "key": "tab",
    "command": "workbench.action.nextEditorInGroup",
    "when": "(vim.mode == 'Normal' || vim.mode == 'Visual') && (editorTextFocus || !inputFocus)"
    },
    {
    "key": "shift-tab",
    "command": "workbench.action.previousEditorInGroup",
    "when": "(vim.mode == 'Normal' || vim.mode == 'Visual') && (editorTextFocus || !inputFocus)"
    },
    // Coding
    {
    "key": "shift-j",
    "command": "editor.action.moveLinesDownAction",
    "when": "vim.mode == 'VisualLine' && editorTextFocus"
    },
    {
    "key": "shift-k",
    "command": "editor.action.moveLinesUpAction",
    "when": "vim.mode == 'VisualLine' && editorTextFocus"
    },
    {
    "key": "ctrl+shift+k",
    "command": "editor.action.showHover",
    "when": "editorTextFocus"
    "when": "vim.mode == 'Normal' && editorTextFocus"
    },

    // File Explorer
    {
    "key": "r",
    "command": "renameFile",
    "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
    },
    {
    "key": "c",
    "command": "filesExplorer.copy",
    "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
    },
    {
    "key": "p",
    "command": "filesExplorer.paste",
    "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
    },
    {
    "key": "x",
    "command": "filesExplorer.cut",
    "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
    },
    {
    "key": "d",
    "command": "deleteFile",
    "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
    },
    {
    "key": "a",
    "command": "explorer.newFile",
    "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
    },
    {
    "key": "shift-a",
    "command": "explorer.newFolder",
    "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
    },
    {
    "key": "v",
    "command": "explorer.openToSide",
    "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
    },
    {
    "key": "s",
    "command": "runCommands",
    "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus",
    "args": {
    "commands": [
    "workbench.action.splitEditorDown",
    "explorer.openAndPassFocus",
    "workbench.action.closeOtherEditors"
    ]
    }
    },

    {
    "key": "ctrl+alt+v",
    "command": "toggleVim"
  4. bledidalipaj revised this gist Jun 4, 2022. 1 changed file with 11 additions and 1 deletion.
    12 changes: 11 additions & 1 deletion keybindings.json
    Original file line number Diff line number Diff line change
    @@ -7,5 +7,15 @@
    {
    "key": "ctrl+alt+v",
    "command": "toggleVim"
    },
    },
    {
    "key": "ctrl+n",
    "command": "explorer.newFile",
    "when": "explorerViewletFocus"
    },
    {
    "key": "ctrl+shift+n",
    "command": "explorer.newFolder",
    "when": "explorerViewletFocus"
    }
    ]
  5. bledidalipaj revised this gist Mar 26, 2022. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion keybindings.json
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    // Place your key bindings in this file to override the defaults
    [
    {
    "key": "ctrl+shift+k",
  6. bledidalipaj revised this gist Mar 26, 2022. 1 changed file with 0 additions and 48 deletions.
    48 changes: 0 additions & 48 deletions settings.json
    Original file line number Diff line number Diff line change
    @@ -1,48 +0,0 @@
    {
    "debug.javascript.autoAttachFilter": "onlyWithFlag",
    "workbench.iconTheme": "material-icon-theme",
    "eslint.format.enable": true,
    "diffEditor.ignoreTrimWhitespace": false,
    "[javascriptreact]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "[javascript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
    },
    "editor.formatOnSave": true,
    "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "files.eol": "\n",
    "prettier.requireConfig": true,
    "editor.bracketPairColorization.enabled": true,
    "javascript.updateImportsOnFileMove.enabled": "always",
    "vim.insertModeKeyBindings": [
    {
    "before": ["j", "j"],
    "after": ["<Esc>"]
    },
    ],
    "vim.handleKeys": {
    "<C-a>": false,
    "<C-b>": false,
    "<C-c>": false,
    "<C-f>": false,
    "<C-d>": false,
    "<C-h>": false,
    "<C-v>": false,
    "<C-x>": false,
    "<C-y>": false,
    "<C-z>": false,
    "<C-n>": false,
    "<C-j>": false,
    "<C-k>": false,
    },
    "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "workbench.colorTheme": "Dracula"
    }
  7. bledidalipaj created this gist Mar 26, 2022.
    12 changes: 12 additions & 0 deletions keybindings.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    // Place your key bindings in this file to override the defaults
    [
    {
    "key": "ctrl+shift+k",
    "command": "editor.action.showHover",
    "when": "editorTextFocus"
    },
    {
    "key": "ctrl+alt+v",
    "command": "toggleVim"
    },
    ]
    48 changes: 48 additions & 0 deletions settings.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,48 @@
    {
    "debug.javascript.autoAttachFilter": "onlyWithFlag",
    "workbench.iconTheme": "material-icon-theme",
    "eslint.format.enable": true,
    "diffEditor.ignoreTrimWhitespace": false,
    "[javascriptreact]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "[javascript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
    },
    "editor.formatOnSave": true,
    "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "files.eol": "\n",
    "prettier.requireConfig": true,
    "editor.bracketPairColorization.enabled": true,
    "javascript.updateImportsOnFileMove.enabled": "always",
    "vim.insertModeKeyBindings": [
    {
    "before": ["j", "j"],
    "after": ["<Esc>"]
    },
    ],
    "vim.handleKeys": {
    "<C-a>": false,
    "<C-b>": false,
    "<C-c>": false,
    "<C-f>": false,
    "<C-d>": false,
    "<C-h>": false,
    "<C-v>": false,
    "<C-x>": false,
    "<C-y>": false,
    "<C-z>": false,
    "<C-n>": false,
    "<C-j>": false,
    "<C-k>": false,
    },
    "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "workbench.colorTheme": "Dracula"
    }