Vim icon indicating copy to clipboard operation
Vim copied to clipboard

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

Open MrSurly opened this issue 1 year ago • 3 comments

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.

MrSurly avatar Mar 10 '24 17:03 MrSurly

use editor.action.formatSelection Are long lines hard wrapped (broken) at 80 columns?

HenryTSZ avatar Jun 13 '24 07:06 HenryTSZ

use editor.action.formatSelection Are long lines hard wrapped (broken) at 80 columns?

Assuming this:

image

Yes, it is.

MrSurly avatar Jun 13 '24 15:06 MrSurly

use editor.action.formatSelection Are long lines hard wrapped (broken) at 80 columns?

Assuming this:

image

Yes, it is.

That's correct, this command is used in the = command. image

HenryTSZ avatar Jun 14 '24 01:06 HenryTSZ