VSCodeVim / VSCodeVim/Vim

Add config to treat Alt/Option as Meta and have it behave as ESC then normal mode key

Open
#5,754 2 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Is your feature request related to a problem? Please describe.
VIM in most terminal supports the Meta key, but VIM in VSCode does not. The Meta key is useful because when VIM receives the Meta key combined with any other key, in insert mode, VIM interprets the key combination as an ESC followed by the other key in normal mode.

Describe the solution you'd like
An option to treat the Alt/Option key as a Meta key when using VSCodeVIM, similar to how terminal/console applications have this feature, and then the same behavior that when the Meta key is pressed with another key the application interprets it as ESC to normal mode followed by the other key in normal, with the mode remaining in normal mode afterwards.

Describe alternatives you've considered
It may be possible to map Alt/Option to Meta at a system level but I have not found a way to do that. Even if I could map to Meta I think VSCodeVim would have to have this behavior added to it.

Additional context
This wiki has details about what VIM does with the Meta key:
https://vim.fandom.com/wiki/Avoid_the_escape_key#Use_Alt.2FMeta_In_a_Terminal

As an example, this is macOS Terminal's keyboard settings showing the option to use the Alt/Option as Meta:
Screen Shot 2020-11-25 at 12 10 23 PM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points; start by locating VSCodeVim's configuration handling and key-processing path for insert mode. Done means an option treats Alt/Option as Meta, Meta-plus-key performs Escape followed by the key's normal-mode action, and leaves the editor in normal mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.