VSCodeVim / VSCodeVim/Vim

cursor blinking before move to target line when use `Nj` or `Nk` when `N`, and seems like slow

Open
#2,468 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

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

What happened: cursor blinking before move to target line when use Nj or Nk, and seems like slow

What did you expect to happen: should target to N line down/up when Nj or Nk directly without blinking cursor

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

  • open new window in vscode
  • copy page content from https://github.com/VSCodeVim/Vim
  • goto edit mode, paste text inside vscode, file type should be text(try to make test simple without affected by other plugins)
  • back to normal mode
  • jumping by 10j, 20k, you will find the bigger N, blinking will take more time.

screenshot:

untitled3

Environment:

vscode configuration relative to vscodevim:

/* Vim */
    "vim.enableNeovim": true,
    "vim.neovimPath": "/usr/local/bin/nvim",
    "vim.easymotion": true,
    "vim.incsearch": true,
    "vim.useSystemClipboard": false,
    "vim.useCtrlKeys": true,
    "vim.hlsearch": true,
    "vim.overrideCopy": false,
    "vim.foldfix": true,
    "editor.lineNumbers": "relative",
    "vim.insertModeKeyBindings": [
        {
            "before": [
                "j",
                "j"
            ],
            "after": [
                "<Esc>"
            ]
        }
    ],
    "vim.otherModesKeyBindingsNonRecursive": [
        {
            "before": [
                "u"
            ],
            "after": [],
            "commands": [
                {
                    "command": "undo",
                    "args": []
                }
            ]
        },
        {
            "before": [
                "<C-r>"
            ],
            "after": [],
            "commands": [
                {
                    "command": "redo",
                    "args": []
                }
            ]
        },
        {
            "before": [
                "<leader>",
                "e",
                "n"
            ],
            "commands": [
                {
                    "command": "editor.action.marker.next"
                }
            ]
        },
        {
            "before": [
                "<leader>",
                "e",
                "p"
            ],
            "commands": [
                {
                    "command": "editor.action.marker.prev"
                }
            ]
        },
        {
            // not working
            "before": [
                "<leader>",
                "e",
                "c"
            ],
            "commands": [
                {
                    "command": "closeMarkersNavigation"
                }
            ]
        }
    ],
    "vim.leader": "<space>",
    "vim.handleKeys": {
        "<C-a>": false,
        "<C-f>": true,
        "<C-n>": false
    },
  • Extension (VsCodeVim) version: 0.11.2
  • VSCode version: 1.21.1
  • OS version: macOS 10.13.3

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.

Research direction

Start by reproducing the reported behavior in VSCodeVim with 10j and 20k on a plain text file, using the listed VS Code and extension versions if available. Trace the handling of counted j and k motions; done means the cursor reaches the target line without a delay or visible intermediate blinking.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.