Vim icon indicating copy to clipboard operation
Vim copied to clipboard

`s` is not working properly in visual mode

Open listenerri opened this issue 3 years ago • 10 comments

Describe the bug s is not working properly, the vim editor mode does not enter Insert mode immediately after pressing s.

v1.21.5 wors fine.

To Reproduce Steps to reproduce the behavior:

  1. In Visual mode pressing s
  2. Continue to input s, a character after the cursor will be deleted
  3. This seems to be because edit mode did not enter insert mode

listenerri avatar Aug 23 '21 09:08 listenerri

I'm getting this too. s always work fine at beginning open vscode, but not long it doesn't work.

poliyka avatar Aug 27 '21 04:08 poliyka

Do you have vim.sneak enabled?

J-Fields avatar Aug 31 '21 01:08 J-Fields

Do you have vim.sneak enabled?

sneak is disabled by default, and I have never modified it

listenerri avatar Aug 31 '21 02:08 listenerri

Can you please provide your configuration?

J-Fields avatar Aug 31 '21 03:08 J-Fields

Can you please provide your configuration?

settings.json https://pastebin.com/145d84E8

listenerri avatar Aug 31 '21 13:08 listenerri

I found some possible. It was happen when "vim.autoSwitchInputMethod.enable" : true and Chinese IME. try disable it.

poliyka avatar Aug 31 '21 14:08 poliyka

I got the same problem. How can I solve this problem by keeping vim.autoSwitchInputMethod.enable" : true ?

changxvv avatar Sep 11 '21 12:09 changxvv

Does anyone deal with this problem?

listenerri avatar Dec 07 '21 08:12 listenerri

    "vim.normalModeKeyBindings": [
        {
            "before": ["C"],
            "after": ["D", "a"]
        },
    ],
    "vim.visualModeKeyBindings": [
        {
            "before": ["s"],
            "after": ["d", "i"]
        }
    ],

There is an alternative way. It is not pretty but I just make do with it.

changxvv avatar Jan 08 '22 04:01 changxvv

    "vim.normalModeKeyBindings": [
        {
            "before": ["C"],
            "after": ["D", "a"]
        },
    ],
    "vim.visualModeKeyBindings": [
        {
            "before": ["s"],
            "after": ["d", "i"]
        }
    ],

There is an alternative way. It is not pretty but I just make do with it.

This breaks the visual block edit functionality. I had to downgrade to the older version: v1.21.5.

listenerri avatar Jul 07 '22 08:07 listenerri