VSCodeVim / VSCodeVim/Vim

How to provide count to keybindings that call vscode commands

Open
#4,588 1 comment 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

I have often experience lag with this extension, but I fixed it with this in settings.json:

	"vim.normalModeKeyBindingsNonRecursive": [
        {
			"before": [
				"j"
			],
			"commands": [
				"cursorDown"
			]
		},
		{
			"before": [
				"k"
			],
			"commands": [
				"cursorUp"
			]
		}
    ],

The problem is, this breaks things like 3j and 3k. Is there any way to provide counts for keybindings?

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 with the settings.json example and trace how vim.normalModeKeyBindingsNonRecursive maps before keys to VS Code commands. Determine whether counts such as 3j and 3k can be preserved when commands are invoked, and document or test the supported behavior before proposing a change.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.