macvim icon indicating copy to clipboard operation
macvim copied to clipboard

Cursor disappears in terminal mode

Open girishji opened this issue 10 months ago • 5 comments

Steps to reproduce

When using :tab term, the cursor is not visible after the prompt appears. Pressing <Esc> makes the block cursor become visible. However, while typing in insert mode (in the prompt), the cursor remains invisible.

Expected behaviour

Cursor should always be visible. I also do not see guicursor having options to set cursor for terminal prompt.

Version of Vim and architecture

latest

Environment

MacOS 15.3.1 with default zsh

How MacVim was installed

No response

Logs and stack traces


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

girishji avatar Apr 18 '25 05:04 girishji

It seems to show up for me? Do you have a screenshot or a video recording? You probably also want to try running Vim in clean mode and with a clean .zshrc. Also, I would appreciate if you fill out the version info in the issue filing template. "Latest" is an ambiguous term considering we have pre-release builds, and there are also multiple ways to install MacVim (binary release vs Homebrew).

ychin avatar Apr 18 '25 16:04 ychin

Thanks, is there any way to change cursor shape in terminal prompt? Typing echo -ne '\e[6 q' makes the cursor disappear.

girishji avatar Apr 18 '25 17:04 girishji

Hm, I can see that using that control sequence will indeed make the cursor disappear in MacVim but not regular terminal Vim. Let me take a look.

ychin avatar Apr 18 '25 21:04 ychin

Thanks! Also, can you add some info on how to pull in the latest Vim changes from upstream for a private build?

girishji avatar Apr 19 '25 06:04 girishji

Thanks! Also, can you add some info on how to pull in the latest Vim changes from upstream for a private build?

git remote add vim https://github.com/vim/vim.git
git merge vim/master

There may be merge conflicts that you need to resolve. You could take a look at https://github.com/macvim-dev/macvim/wiki/Merging-from-upstream-Vim for specific files if you run into issues.

I also haven't done an upstream merge recently since I was busy so I plan to do one soon.

ychin avatar Apr 19 '25 07:04 ychin