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.

C-e and C-y modifications not working

See original GitHub issue

Firstly, thank you so much for this plugin! I just switched from vscode vim plugin and I am already in love!

I have the following lines in my init.vim to scroll the viewport faster:

nnoremap <C-e> 3<C-e>
nnoremap <C-y> 3<C-y>

However I can’t get this to work with this plugin.

I have tried with and without the following snippet in keybindings.json and neither works:

  {
    "key": "ctrl+e",
    "command": "vscode-neovim.send",
    "when": "editorTextFocus && neovim.mode != insert",
    "args": "<C-e>"
  },
  {
    "key": "ctrl+y",
    "command": "vscode-neovim.send",
    "when": "editorTextFocus && neovim.mode != insert",
    "args": "<C-y>"
  },

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
asvetliakovcommented, Sep 11, 2020

@nwaywood Sorry, but it’s not possible now 😄 . Scrolling commands are bound in the extension directly that’s why neovim nnoremap doesn’t work here. I’ll look if we can change that

0reactions
wenfangducommented, Apr 7, 2022

I don’t think it’s possible to define object arguments for a command in vscode keybindings.

@asvetliakov @nwaywood @theol0403

It is possible, I’m using these keybindings to scroll up/down multiple lines:

  {
    "key": "alt+p",
    "command": "editorScroll",
    "when": "textInputFocus",
    "args": {
      "to": "up",
      "value": 5,
      "by": "line",
      "revealCursor": true
    }
  },
  {
    "key": "alt+n",
    "command": "editorScroll",
    "when": "textInputFocus",
    "args": {
      "to": "down",
      "value": 5,
      "by": "line",
      "revealCursor": true
    }
  },
Read more comments on GitHub >

github_iconTop Results From Across the Web

CI: "only:changes" configuration does not work properly when ...
When I trigger a pipeline with the Web frontend, the build stage always runs, regardless of whether Dockerfile has changed. What is the...
Read more >
wildmenu: <C-E>, <C-Y> behavior similar to insert-mode ...
It is annoying to have to duplicate code to reproduce the behavior but I guess it's unavoidable. I am not sure the error...
Read more >
DEFINING THE INTENSITY OF CONDITIONING REGIMENS
Defining conditioning regimen intensity has become a critical issue for the hemopoietic stem cell transplant community.
Read more >
Apps stopped working with QRadar CE - Forums - IBM Support
A variant of the "hello world" app stopped working. Clicking on the tab presented an ngnix error about "Bad Gateway". Attempting to install...
Read more >
HIP-POCKET GUIDE - Army Logistics University
L - REPARABLE ITEM (IF NOT DISPOSE AT SPECIAL ACT). O - REPARABLE ITEM (IF NOT DISPOSE AT ORG) ... CE - REJECTED...
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