Bug in Vim mode: replacing a character with a space inserts "space"

In Vim, I can replace a single character by hitting “r” and then the character I want to replace it with:

abc
 ^

Enter “rX”:

aXc
 ^

If I want to replace a character with a space, i.e.,

abcdefg
 ^

Enter “r[space]”, this results in

aspaceg
     ^

so literally the characters “space” are inserted, overwriting whatever was there.

1 Like

Sounds like an amazing feature ! :smiley:

I really hate this bug too, it happens to me every 2 minutes when editing in CodingGame !

There’s also a similar issue with autoclose of strings and braces.
If I have

if toto
  ^

And I enter r( to put a parenthesis, I get:

if()oto
    ^

Although this one is less problematic as the auto-close can be deactivated.

This has been solved by the new IDE as well. Great job! And there is even an editor command line now… awesome.