VSCodeVim / VSCodeVim/Vim

`<C-k>` outside insert mode

Open
#7,085 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/enhancement
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'd like to use VSCode default keybindings C-k C-c (comment block) and C-k C-u (uncomment block) when in Visual mode (as they have no direct Vim equivalent). But I'd still like C-k to make combining glyphs (Vim-style) when in Insert mode.

Describe the solution you'd like
The Vim extension should only process C-k when in Insert mode, and leave C-k to key bindings when in Normal/Visual mode. I think this could be default behavior: Vim issues an error bell/flash when hitting C-k in Normal or Visual mode.

Describe alternatives you've considered
As mentioned in this comment, vim.handleKeys: { '<C-k>': false } is a workaround that makes C-k key bindings work. But it also prevents combining glyphs in Insert mode.

Additional context
If you think it's a good idea, I'd be happy to try implementing this, though I'd appreciate pointers of how it might be done.

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 tracing where the extension handles and how it distinguishes Insert, Normal, and Visual modes. Compare that path with the vim.handleKeys workaround and VS Code keybindings. Done means remains available for combining glyphs in Insert mode while Normal and Visual modes pass it to VS Code keybindings, with coverage for the affected modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.