VSCodeVim / VSCodeVim/Vim

When using auto-indent (==), long lines are hard wrapped/broken at 80 characters; regular VIM does not do this.

Open
#8,930 3 comments 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 using auto-indent (e.g. ==), long lines are hard wrapped (broken) at 80 columns. This does not occur when using regular vim outside of vscode.

To Reproduce

  1. Edit a code file (in my case .hpp)
  2. Enter a long line of code.
  3. Press == to auto-indent that line

Expected behavior
Line is auto-indented, and no line break occurs

  • Extension (VsCodeVim) version: 1.27.2
  • VSCode version: 1.87.1
  • OS: Ubuntu 23.10

Additionally, textwidth is set to 250.

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

No source file or test is named. Reproduce the issue in VSCodeVim with == on a long .hpp line while textwidth is 250, then trace the auto-indent handling and its interaction with the 80-column break. Done means auto-indent preserves the long line without inserting a break, matching regular Vim.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.