VSCodeVim / VSCodeVim/Vim

Cursor doesn't stay in the same row when moving up/down when there's tabs in the middle of the line

Open
#8,108 1 comment 0 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

Describe the bug
When there's tabs to align text, going up/down causes the cursor to change columns

To Reproduce
Steps to reproduce the behavior:

  1. Have any text that uses tab to align, ex:
h		-> H
continue	-> CONTINUE
  1. Put the cursor in the tabs
  2. Move cursor Up/Down

Expected behavior
Cursor to stay in the same column

Screenshots
ezgif-3-6dd4fc1f18

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.24.3
  • VSCode version: 1.73.1 (commit 6261075646f055b99068d3688932416f2346dd3b)
  • OS: Linux Mint 20.3 x64 5.4.0-132-generic

Additional context
Happened while editing a plain text file (.txt)

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 issue in a plain-text file containing tabs, using the example in the report, and verify how moving the cursor up or down changes its column. Trace the cursor-movement handling from that reproduction; done means the cursor remains in the same visual column across both lines, with coverage for tabs in the middle of a line.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.