VSCodeVim / VSCodeVim/Vim

[Feature Request] Reflow Chinese text

Open
#2,686 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area/non-latin-characters
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

FEATURE REQUEST

What happened:

Usually there is no space in Chinese texts, so gq won't work for Chinese. In real Vim with :set formatoptions+=m, vim can break at multi-byte characters to let gq work for Chinese (and other Asian languages).

What did you expect to happen:

Use an option to enable multi-byte character reflow, just like vim.

Thx!

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 locating the implementation of gq and any existing handling for Vim's formatoptions; compare the requested m behavior for Chinese and other multibyte text. Done means an option enables reflow at multibyte characters and gq works for text without spaces, with behavior matching Vim where applicable.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
internationalization, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.