When using auto-indent (==), long lines are hard wrapped/broken at 80 characters; regular VIM does not do this.
Open
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
- Edit a code file (in my case
.hpp) - Enter a long line of code.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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