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

Infinite scrolling in visual mode (<C-e>, <C-y>) #3669

Open
cemiloten opened this issue Apr 9, 2019 · 0 comments
Open

Infinite scrolling in visual mode (<C-e>, <C-y>) #3669

cemiloten opened this issue Apr 9, 2019 · 0 comments

Comments

@cemiloten
Copy link

cemiloten commented Apr 9, 2019

Describe the bug
I am using these shortcuts to scroll the page by multiple lines

"vim.normalModeKeyBindingsNonRecursive": [
...
        {
            "before": ["<C-j>"],
            "after": ["8", "<C-e>"]
        },
        {
            "before": ["<C-k>"],
            "after": ["8", "<C-y>"]
        },
...
]

It works fine in normal mode, but in visual mode the scrolling goes all the way to the beginning or the end of the file.

To Reproduce
Steps to reproduce the behavior:

  1. Have this in settings.json
"vim.visualModeKeyBindingsNonRecursive": [
...
        {
            "before": ["<C-j>"],
            "after": ["8", "<C-e>"]
        },
        {
            "before": ["<C-k>"],
            "after": ["8", "<C-y>"]
        },
...
]
  1. Open a file that is at least two pages long.
  2. Have some text selected in visual mode
  3. Start scrolling up and down with ctrl+j and ctrl+k

Expected behavior
Expected to just scroll up and down by the amount specified in settings

Screenshots
Screenshot 2019-04-09 at 22 43 33

Environment:

  • Extension (VsCodeVim) version: 1.4.0
  • VSCode version: 1.33.0
  • OS: Mac OS and Windows 10
@J-Fields J-Fields changed the title Infinite scrolling in visual mode (<C-e>, <C-y>) Infinite scrolling in visual mode (<C-e>, <C-y>) Oct 15, 2021
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

2 participants