Vim: following exit from insert mode doesn't register when using as leader on OS X

Describe the bug When pressing <leader> <leader> attempting to use easy motion immediately after existing insert mode, the second <leader> cancels the command chain and returns to normal mode. This only happens the first time after existing insert mode, and only happens when using <space> as leader.

To Reproduce Steps to reproduce the behavior:

  1. Create an empty document in VSCode with VIM extension installed and enabled.
  2. Enter insert mode, and enter some text
  3. Press escape to exit insert mode
  4. Press <leader> (the status bar will show --NORMAL-- <leader>
  5. Press <leader> again (the status bar will return to --NORMAL–
  6. Press <leader><leader> now and it will work as expected.

Expected behavior Using <leader><leader> after exiting insert mode should work the same as normal.

Screenshots Oct-24-2019 17-08-57

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.11.2
  • VSCode version: 1.39.2
  • OS: Mojave (10.14.6 (18G95))

Additional context If I had to guess this feels like a performance issue. I was disabling extensions to see if I could prevent the issue, and while it didn’t prevent the issue, with fewer extensions running it seemed harder to reproduce.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (3 by maintainers)

Most upvoted comments

I was having this issue on MacOS and seem to have fixed it by going to “System Preferences” -> “Keyboard” -> “Text” and unchecking “Add full stop(period) with double-space”.

@bphilly96 Omg… I had no idea that was a thing. I’ve just changed that setting and put my leader back to <space>, and will see if I see the issue again. Hopefully you found the smoking gun here; it definitely seems likely that you have. Thanks so much for posting your solution here!