VSCodeVim/Vim

Incorrect formatting with `gqq` in Markdown

Open

#3,125 opened on Oct 10, 2018

View on GitHub
 (0 comments) (1 reaction) (0 assignees)TypeScript (1,271 forks)batch import
help wantedkind/bug

Repository metrics

Stars
 (12,664 stars)
PR merge metrics
 (Avg merge 9d 13h) (7 merged PRs in 30d)

Description

To Reproduce

  1. Paste the following text into a buffer:
*foo* bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar
  1. Press gqq and see the following (notice the leading asterisk on the second line):
*foo* bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar
*bar bar bar bar bar bar bar bar bar bar

Expected behavior

As in Vim, the result should be

*foo* bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar
bar bar bar bar bar bar bar bar bar bar

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 0.16.9
  • VSCode version: 1.28.0
  • OS: macOS

Contributor guide