VSCodeVim / VSCodeVim/Vim

Get VIM Mode

Open
#9,690 0 comments 0 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.
I am trying to author several extensions that I would like to "play nice" with VIM users; to do so I need to be able get and change the VIM Mod via commands.

Describe the solution you'd like
Add the following commands:
vim.getMode: returns the current VIM mode
vim.setMode: sets the mode

Describe alternatives you've considered
I tried getting the current mode from the context key, but this is not possible. I can initiate a mode change by sending the type but this will depend on if the user kept default vim mappings.

Additional context
None

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

Start by locating the extension's command-registration entry point and the current VIM mode state. The issue mentions context keys and type input as related paths, so check how commands are exposed to extensions and how mode changes work independently of user mappings. Done means vim.getMode and vim.setMode can read and change the current mode.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.