lambdalisue / jupyter-vim-binding

Jupyter meets Vim. Vimmer will fall in love.
2.1k stars 136 forks source link

Holding motion keys doesn't continue movement #40

Closed rawrgulmuffins closed 8 years ago

rawrgulmuffins commented 8 years ago

Expected Behavior

Holding h, j, k, l causes the cursor to continue moving in the direction indicated.

Current Behavior

Holding h, j, k, l causes the cursor to move once.

Environment

Python3
backports-abc (0.4)
decorator (4.0.6)
Flask (0.10.1)
ipykernel (4.2.1)
ipython (4.0.1)
ipython-genutils (0.1.0)
ipywidgets (4.1.1)
itsdangerous (0.24)
Jinja2 (2.8)
jsonschema (2.5.1)
jupyter (1.0.0)
jupyter-client (4.1.1)
jupyter-console (4.0.3)
jupyter-core (4.0.6)
MarkupSafe (0.23)
mistune (0.7.1)
nbconvert (4.1.0)
nbformat (4.0.1)
notebook (4.0.6)
path.py (8.1.2)
pexpect (4.0.1)
pickleshare (0.5)
pip (7.1.2)
ptyprocess (0.5)
Pygments (2.0.2)
PyYAML (3.11)
pyzmq (15.1.0)
qtconsole (4.1.1)
setuptools (18.2)
simplegeneric (0.8.1)
terminado (0.5)
tornado (4.3)
traitlets (4.0.0)
Werkzeug (0.11.3)
wheel (0.24.0)
lambdalisue commented 8 years ago

What happen wken you hold hijk in other roftware such as texteditor or notepad?

Which OS do you use?

Which browser do you use?

Do you use a browser plugin such as vimperator, vimnium, or so on? If so, what happen when you disable that.

rawrgulmuffins commented 8 years ago

What happen when you hold hijk in other software such as texteditor or notepad?

Currently I'm just using the console vim (VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jul  9 2015 23:58:42) installed from homebrew

Which OS do you use?

OSX Yosemite version 10.10.5

Which browser do you use?

Chrome version 47.0.2526.106 (64-bit)

Do you use a browser plugin such as vimperator, vimnium, or so on? If so, what happen when you disable that.

I am not using vimperator, vimnium, or any other key binding plugins. I can disable all of my other plugins (like lastpass, ghostly, adblock, etc.)
lambdalisue commented 8 years ago

Then what happen when you hold i in your Vim

rawrgulmuffins commented 8 years ago

switches to insert mode then

iiiiiiiii
lambdalisue commented 8 years ago

I'm sorry but I cannot reproduce the issue :'(

traeki commented 8 years ago

I no longer know where the stackoverflow thread was, but based on some such, I ran

defaults write -g ApplePressAndHoldEnabled -bool false

and restarted my computer. Works like a charm, now.

Give that a shot, and see if it fixes it. (I'm using El Capitan, but I don't think that matters for this.)

lambdalisue commented 8 years ago

To type an accented or alternate version of a character, hold a key down until its alternate characters are displayed.

https://support.apple.com/en-us/HT201586

Aha, that's why. Maybe I should write down FAQ about

$ defaults write -g ApplePressAndHoldEnabled -bool false

Thing. Thanks @traeki

But wait. He said he could repeat keys in Vim... Hum....

rawrgulmuffins commented 8 years ago

I'll test this when I'm home tonight and have access to my laptop.

lambdalisue commented 8 years ago

ping @rawrgulmuffins How's thing going?