macvim-dev / macvim-dev/macvim
Cursor position on insert
未关闭
还没有人认领这个 Issue。
- 主要语言
- Vim Script
- 星标
- 7.9k
- 派生
- 691
- PR 合并指标
- 30 天内没有已合并 PR
描述
Steps to reproduce
- pull and build latest MacVim
- load a file in MacVim (with or without plugins has same effect):
mvim -u NONE file - move to the middle of a word, press i to insert text, start typing
Expected behaviour
- cursor should change shape from block to vertical line between character with block over it and the preceding character
- what happens is cursor changes shape to vertical line after the character, but inserts text before that character
https://user-images.githubusercontent.com/4978837/165880253-67a8bd3d-6737-4d78-b6e7-99fc22e5f5c1.mp4
Version of Vim and architecture
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr 29 2022 12:54:26) macOS version - arm64 Included patches: 1-4822
Environment
OS Big Sur 11.6.5, arm64
How MacVim was installed
built from git
Logs and stack traces
No response
Vim configuration where issue is reproducable
No response
Issue has been tested with given configuration
- by running MacVim.app from GUI macOS interface
- by running vim/gvim/etc installed by MacVim
- by running other versions of vim (e.g. /usr/bin/vim)
Issue has been tested with no configuration
- by running
mvim --clean(orgvim, supplied by MacVim distribution) - by running
vim --clean(in terminal, supplied by MacVim distribution) - by running
vim --clean(in terminal, other suppliers, e.g. /usr/bin/vim)
Other conditions
- The both Homebrew packages "vim" and "macvim" are installed
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用报告的 arm64 macOS 配置,复现 MacVim.app 和 mvim --clean 中的光标与插入行为。将 MacVim GUI 与 vim/gvim 及其他 Vim 版本进行比较,包括在单词中间插入的情况。在插入模式下输入时,光标形状和插入位置一致即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- macos, vim
- 领域
- desktop
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100