Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Problem with numeric key bindings

Open bradleyboy opened this issue 9 years ago • 2 comments

  • Click thumbs-up 👍 on this issue if you want it!
  • Click confused 😕 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


BUG REPORT

Environment:

  • VSCode Version: 1.15.1
  • VsCodeVim Version: 0.10.0
  • OS: macOS 10.12.6

What happened:

Using the following configuration:

{
	"vim.otherModesKeyBindings": [
		{
			"before": ["0"],
			"after": ["^"]
		},
		{
			"before": ["4"],
			"after": ["$"]
		}
	]
}

Neither of these mappings seem to have any effect.

What did you expect to happen:

I expected 0 to take me to the first non-whitespace character on the current line, and 4 to take me to the line end. Changing either "before" setting to a non-numeric character works as expected.

bradleyboy avatar Sep 03 '17 15:09 bradleyboy

I can confirm this doesn't work and the first example is one of the handiest mappings to have. 😄

heyhemp avatar Oct 19 '17 15:10 heyhemp

Looks like a dupe of https://github.com/VSCodeVim/Vim/issues/2831

jpoon avatar May 06 '19 07:05 jpoon