macvim-dev / macvim-dev/macvim

Cursor position on insert

Open
#1,241 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
7.9k
Forks
691
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce
  1. pull and build latest MacVim
  2. load a file in MacVim (with or without plugins has same effect): mvim -u NONE file
  3. 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 (or gvim, 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

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

Reproduce the cursor and insertion behavior in MacVim.app and with mvim --clean using the reported arm64 macOS setup. Compare GUI MacVim with vim/gvim and other Vim versions, including the middle-of-word insert case. Done means the cursor shape and insertion position agree while typing in insert mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, vim
Domain
desktop
Issue type
Bug
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.