question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remap with `<S-Space>`

See original GitHub issue

Is this a BUG REPORT or FEATURE REQUEST? (choose one):

Bug report

What happened:

When I define a mapping for shift-space with <S-space>, it does not work.

What did you expect to happen:

Shift-space should work. It works in MacVim (OS X) and gvim (Linux).

These mappings are my most-used vim keymappings that I’ve defined.

How to reproduce it (as minimally and precisely as possible):

"vim.normalModeKeyBindingsNonRecursive": [
    {
        "before": ["<S-space>"],
        "after": ["<C-b>"]
    },
    {
        "before": ["<space>"],
        "after": ["<C-f>"]
    }
]

Environment:

  • Extension (VsCodeVim) version: 0.14.1
  • VSCode version: 1.24.1
  • OS version: macOS 10.13

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:5
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
yangcommented, Jul 28, 2018

Giving VSCode another try - thanks @ericridgeway for the hint, this works for me:

{
    "key": "shift+space",
    "command": "scrollPageUp",
    "when": "editorTextFocus && vim.mode != 'Insert'"
},
0reactions
tomoemoncommented, Jul 10, 2019

My workaround on keybindings.json. Use “cursorPageUp” instead of “scrollPageup”.

    {
        "key": "shift+space",
        "command": "cursorPageUp",
        "when": "editorFocus && vim.active && !inDebugRepl && vim.mode == 'Normal'"
    },
Read more comments on GitHub >

github_iconTop Results From Across the Web

<Space> is a big key, what do you map it to? : r/vim
CTRL-6 was my inspiration for remapping Space , actually; I used to use it all the time, and reaching for the 6 annoyed...
Read more >
Remap <Space> key doesn't work
I was trying to remap some keys to switch ...
Read more >
Remapping Space and Shift - Ask for Help
I'd like to remap the spacebar as a shift key, and then use the spacebar in other hotkeys. So I tried this: Space::Shift...
Read more >
Remapping SHIFT + SPACE to an underscore (_)
Create a new script called underscore.ahk with your favorite text editor. Write the following in the file and save it: +Space::Send _.
Read more >
remaping save to space key in vim maintains ...
You full mapping (taken from your .vimrc ) is this: nnoremap <space> :w<CR> " remap :w save to space button in normal mode....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found