VSCodeVim / VSCodeVim/Vim

Unable to rebind keys to `<S-Up>`/`<S-Down>`

Open
#5,607 2 comments 0 reactions 1 assignee View on GitHub

@berknam is already working on this.

Since Dec 3, 2020.

area/remap kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
I am unable to assign a different keymap to } or {

To Reproduce
Steps to reproduce the behavior:

Go to Settings.json and add the following:

"vim.normalModeKeyBindingsNonRecursive": 
[
    {
      "before": ["}"],
      "after": ["<S-up>"] 
    },
    {
      "before": ["{"],
      "after": ["<S-down>"] 
    },
]

Expected behavior
I would expect the } and { keys to be remapped to shift+up and shift+down, respectively. This means that when I press shift+up for example, while in normal mode I would expect the cursor to jump to the line above the previous text block.

Environment (please complete the following information):

  • Extension (VsCodeVim) version:
  • VSCode version: 1.17.1
  • OS: Windows 10.0.19041 build 19041

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.