-
Notifications
You must be signed in to change notification settings - Fork 92
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
Arrow keys are not working in tmux #10
Comments
could you paste your tmux arrow keys shortcuts from tmux config file here? |
This is my tmux config file
And here are all the keys that
Thanks for you help. |
+1 I can confirm it on both using a Cygwin terminal on Windows 10 connected to an Ubuntu 16.04.4 server through ssh and a vte console/terminal locally. The problem exists when trying to move the cursor with the arrow keys in insert mode. In a plain terminal the arrow keys move the cursor correctly, but they exit insert mode (stays in normal mode). In tmux the behaviour is similar than when vim is run in vi compatibility mode: in normal mode the arrows move the cursor correctly, but in insert mode they (I guess) exit and reenter insert mode and put a new line just above the last cursor position with a single uppercase letter depending on the arrow key pressed: A (up), B (down), C (right), D (left). I think the letter is the same as in the arrow key's character representation. This might help: Fix arrow keys that display A B C D on remote shell Other vim ide configurations I tried (vim-ide by sebdah, yavide) do not have this issue. I use the default tmux keybindings.
|
I know this is an old thread, but I just had this issue and solved it by adding |
I'm a real fan of this setup. But I also really like tmux. When I run vim now in tmux my arrow keys kick me out of insert mode and print a,b,c, or d on a new line until I hit the ESC key. I'm not sure how to begin to debug this so I can fix it. But I would love it if someone either knows how to fix it or can point me to how I would start to debug it. Just to clarify, everything works fine outside of tmux.
The text was updated successfully, but these errors were encountered: