Distinguish between Latin characters and CJK characters in vim::NextWordStart etc. #21203
Open
1 task done
Labels
enhancement
[core label]
internationalization
Feedback for human language support, translations, etc
vim
Check for existing issues
Describe the feature
If I have a buffer:
ˇ试一试abc试一试 a
and press w in vim mode, the whole string "试一试abc试一试" is recognized as a single word and the buffer will become
试一试abc试一试 ˇa
.This is not expected. In Vim/Neovim it will know the CJK characters is different from Latin characters and become
试一试ˇabc试一试 a
The related code in Neovim is
https://github.com/neovim/neovim/blob/66bb1e577c96d8eb63c04dcc737394b4ce2b0f5d/src/nvim/mbyte.c#L1290-L1308. I think in zed we can just use Unicode Script property to distinguish the characters.
Environment
Zed: v0.162.5 (Zed)
OS: macOS 15.1.1
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: