question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

alt- modifier not working (f.e. `nmap <a-j> exit` does not exit when I press `alt-j`)

See original GitHub issue

I seem not to be able to do alt-anything.

I turned off the Window: Custom Menu Bar Alt Focus and Window: Enable Menu Bar Mnemonics options of VS Code, but no luck.

Any idea why no alt- combos work?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
trusktrcommented, Dec 29, 2020

The following makes all alt- letter combos work:

[
    { "key": "alt+a", "command": "vscode-neovim.send", "args": "<a-a>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+b", "command": "vscode-neovim.send", "args": "<a-b>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+c", "command": "vscode-neovim.send", "args": "<a-c>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+d", "command": "vscode-neovim.send", "args": "<a-d>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+e", "command": "vscode-neovim.send", "args": "<a-e>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+f", "command": "vscode-neovim.send", "args": "<a-f>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+g", "command": "vscode-neovim.send", "args": "<a-g>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+h", "command": "vscode-neovim.send", "args": "<a-h>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+i", "command": "vscode-neovim.send", "args": "<a-i>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+j", "command": "vscode-neovim.send", "args": "<a-j>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+k", "command": "vscode-neovim.send", "args": "<a-k>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+l", "command": "vscode-neovim.send", "args": "<a-l>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+m", "command": "vscode-neovim.send", "args": "<a-m>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+n", "command": "vscode-neovim.send", "args": "<a-n>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+o", "command": "vscode-neovim.send", "args": "<a-o>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+p", "command": "vscode-neovim.send", "args": "<a-p>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+q", "command": "vscode-neovim.send", "args": "<a-q>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+r", "command": "vscode-neovim.send", "args": "<a-r>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+s", "command": "vscode-neovim.send", "args": "<a-s>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+t", "command": "vscode-neovim.send", "args": "<a-t>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+u", "command": "vscode-neovim.send", "args": "<a-u>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+v", "command": "vscode-neovim.send", "args": "<a-v>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+w", "command": "vscode-neovim.send", "args": "<a-w>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+x", "command": "vscode-neovim.send", "args": "<a-x>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+y", "command": "vscode-neovim.send", "args": "<a-y>", "when": "editorTextFocus && neovim.init" },
    { "key": "alt+z", "command": "vscode-neovim.send", "args": "<a-z>", "when": "editorTextFocus && neovim.init" },
]

Are there alt- bindings in VS Code, besides the file menu ones? I don’t think I’ve ever used one.

I’m imagining that most Vim users will prefer their Vim alt- bindings over VS Code file menu bindings. Plus we have the command palette.

What if we add an option in the extension settings that we can toggle (prevents from having to paste the above in keybindings.json)?

0reactions
asvetliakovcommented, Jan 3, 2021

Duplicate of #421

Read more comments on GitHub >

github_iconTop Results From Across the Web

alt- modifier not working (f.e. `nmap <a-j> exit` does not ...
I seem not to be able to do alt-anything. I turned off the Window: Custom Menu Bar Alt Focus and Window: Enable Menu...
Read more >
Modifier keys (alt/option/shift) not working
Solved: I use Photoshop CS6 on an iMac 27inch running Sierra 10.12.2 with a 13HD Cintiq with the driver completely updated to version...
Read more >
How to Fix ALT Codes Not Working on Windows 10 [Tutorial]
How to Fix ALT Codes Not Working on Windows 10.Several Windows 10 users are reporting that they are suddenly unable to use ALT...
Read more >
Untitled
Moonbeam what else is there, Acompanhamento porco a paraguaia, Marcum lx1 not working, Khooni nala srinagar, Maria marmolejo, Hotels near cambium farms, ...
Read more >
Untitled
Profilaxis oftalmica del recien nacido, Adding error bars in numbers ipad, ... Jules et jim rue cartier, Bill of lading no search, Gebeceler...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found