VSCodeVim / VSCodeVim/Vim

New Commands for VIM Interop

Open
#9,691 0 comments 1 reaction 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.
As an extension developer, I would like to support VIM users better by being able to detect their current mode and change it when they take certain actions.

Describe the solution you'd like
Two new commands:

vim.getMode returns the current VIM mode
vim.setMode changes the current mode to a valid VIM mode

Describe alternatives you've considered
I tried getting the current mode from context but the VS Code API does not allow this.
Additionally, I tried sending keys using the type command to the editor, which works, but is inconsistent if the user has done any re-maps.

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 or tests. Start by locating where VS CodeVim commands are registered and where the current VIM mode is tracked, then determine how valid modes are represented. Done means exposing vim.getMode and vim.setMode so extensions can read the current mode and change it reliably.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.