Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to bind "0" to "^" #1492

Closed
ghost opened this issue Apr 11, 2017 · 2 comments
Closed

Unable to bind "0" to "^" #1492

ghost opened this issue Apr 11, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 11, 2017

  • 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.


What did you do?

Trying to bind 0 to ^ in normal mode with this:

"vim.otherModesKeyBindingsNonRecursive": [ { "before": ["0"], "after": ["^"] } ]

What did you expect to happen?

When I press 0, I go to the first non-whitespace character in the line

What happened instead?

Pressing 0 make the cursor go to the first character in the line, whether whitespace or non-whitespace

Technical details:

  • VSCode Version: 1.11.1
  • VsCodeVim Version: 0.6.15
  • OS: Windows 10
@xconverge
Copy link
Member

https://github.com/VSCodeVim/Vim/blob/master/src/mode/modeHandler.ts#L775

The problem is here due to it being seen as ONLY a count

Chillee added a commit to Chillee/Vim that referenced this issue Apr 26, 2017
@jpoon
Copy link
Member

jpoon commented Aug 9, 2018

This was fixed with #2793

@jpoon jpoon closed this as completed Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants