To demonstrate the whole reproducing process, I make a video: https://youtu.be/UD38-wnwGnw

As you can see, I enter my vim with '--clean' flag. No vimrc, no plugins, but it still enter the 'replace mode' automatically. It is so annoying, anyone knows what's going on?

Update: After entered clean vim(with --clean flag, but issue remained), I checked if any unexpected scripts had been executed: Seems nothing special Seems nothing special, everything belongs to official content.

And I also checked my 'vi' command, confirmed that where it comes from: Nothing special neither Nothing special neither, too.

I still have no idea toward this issue.

  • Since it's loaded with --clean you might want to check your defaults.vim file to make sure it hasn't been modified. Also, make sure vi is properly aliased to vim: type -a vi. – B Layer Sep 20 at 11:11
  • 1
    Also, welcome to Vi and Vim! – filbranden Sep 20 at 15:10
  • 1
    Thanks, pals. I posted some further testing information, but nothing changed. – naive231 Sep 20 at 15:16
  • 1
    @filbranden Do you want me to verbose the insertmode state AFTER cancel the replace mode and focus to command bar? Of course, it shows 'noinsertmode'. – naive231 Sep 20 at 15:59
  • 1
    @filbranden I have no environment variables such as VIMINIT or EXINIT, though I don't know what they means. – naive231 Sep 20 at 16:00

That is a known issue: https://github.com/vim/vim/issues/6951 and https://github.com/vim/vim/issues/6365

As a temporary fix, add set t_u7= to your vimrc.

PS, the issue was introduced by windows terminal and is fixed there.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.