`<C-k>` outside insert mode
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'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
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
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