Skip to content

Slow line movement #8557

@rafaelbdb

Description

@rafaelbdb

Describe the bug
One of the main advantages of Vim is its insane SPEED. Everything works instantly, specially the cursor movement, but it's way too slow with this plugin.

To Reproduce
When I try to move 20 lines down for example (with the command 20j), it clearly shows that it is looping "j" 20 times, which is extremely slow.
This also affects other commands that uses the character movement like Yank, Delete, Select, etc.

Expected behavior
Instead of looping, it should take the current line number as reference, add the desired amount of movement to that number, and jump to that.
For example, if I'm in line 123 and want to go 20 lines down with 20j, it should perform the equivalent to a 143G command instead of looping.
Of course, this should also affect the other refered commands.

Environment (please complete the following information):
Tested on Windows 10 and Ubuntu 22.04, with basically any version of VSCode and Vim plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions