Unable to configure keyboard shortcuts using the .vimrc file
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
Unable to configure keyboard shortcuts using the .vimrc file.
To Reproduce
I'm trying to configure my VsCodeVim using a .vimrc file. I've written the following content in the file:
inoremap
inoremap
inoremap
inoremap
The goal is to allow me to move the cursor directly in insert mode using the Alt+hjkl key combinations without having to switch back to normal mode. These configurations work fine in gVim 9.1, but they don't work in VsCode. I've already disabled the Alt key shortcuts for the menu bar mapping through the following two settings:
Window: Custom Menu Bar Alt Focus
Window: Enable Menu Bar Mnemonics
Expected behavior
Move the cursor directly in insert mode using the Alt+hjkl key combinations without having to switch back to normal mode.
Screenshots
/
Environment (please complete the following information):
- Extension (VsCodeVim) version: v1.32.1
- VSCode version: 1.106.0
- OS: Windows 11 25H2 26200.7171
Additional context
Changing M-x to A-x also didn't work. However, changing it to C-x allows me to use the Ctrl+hjkl key combinations to move the cursor in insert mode normally.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the provided .vimrc mappings on Windows 11 using VSCodeVim v1.32.1 and VS Code 1.106.0, comparing Alt, Ctrl, and A-x/C-x mappings. Start by tracing how insert-mode mappings and Alt key events are handled; done means Alt+hjkl moves the cursor in insert mode without conflicting with the menu bar.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100