Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't move a cursor continuously by hold longly the key. #4629

Closed
seonggukchoi opened this issue Mar 7, 2020 · 3 comments
Closed

I can't move a cursor continuously by hold longly the key. #4629

seonggukchoi opened this issue Mar 7, 2020 · 3 comments

Comments

@seonggukchoi
Copy link

seonggukchoi commented Mar 7, 2020

Describe the bug
I can't move a cursor continuously by hold longly the key.
There are the same problem other keys: j, k, h, l and etc too.

Expected behavior
I can move a cursor continuously by hold longly the key.

Environment

  • Extension (VsCodeVim) version:
  • VSCode version: 1.42.1
  • OS: macOS 10.15.3
@J-Fields
Copy link
Member

J-Fields commented Mar 8, 2020

Did you do this set up? https://github.com/VSCodeVim/Vim#mac

@seonggukchoi
Copy link
Author

@J-Fields I applied that globally, but I just apply that for only VSCode then working well.
I will add to a script for setting my mac!
Thank you.

@UeiWang
Copy link

UeiWang commented Apr 23, 2022

Did you do this set up? https://github.com/VSCodeVim/Vim#mac

@J-Fields The method described there does fix the problem that I can't move the cursor continuously by pressing and holding h, j, k, and l in Normal Mode, but following that method would make me no longer able to input a diacritical letter by pressing and holding its base letter (like inputting "é" by pressing and holding "e"; this is a macOS functionality turned on by ApplePressAndHoldEnabled switched off in that method) in VS Code. However, I also use VS Code to write LaTeX, and sometimes I do rely on the functionality turned on by ApplePressAndHoldEnabled to input accented letters.

The "Vim key binding" of the official online editor of LeetCode China allows me to move the cursor continuously by pressing and holding h, j, k, and l in Normal Mode, but I can still press and hold a letter to input its diacritical forms in Insert Mode (only in the Chinese site, in the American site I can't move the cursor continuously by pressing and holding h, j, k, and l). That is what I want.

BTW, the source code of LeetCode China's online editor is monaco-monaco.4cb0ba58.js. Perhaps you can find some inspiration from how the Vim key binding is implemented there :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants