jupyter_console icon indicating copy to clipboard operation
jupyter_console copied to clipboard

Arrow keys not working in vim in Jupyter console

Open mikecroucher opened this issue 7 years ago • 3 comments

Hi

In a Jupyter console session started from new->terminal in the main Jupyter home page, I have an issue with arrow keys inside a vi session. They don't work and eventually one gets the error message

E388 Couldn't find definition

Within my vi session, if I do

:!reset

The arrow keys start working. Another way to fix the issue is the following vi command

:set term=xterm

Although why this works is a mystery to me since if you start a new vi session and query the terminal, I am told that it is already xterm. That is

:set term?

gives term=xterm

Question is, how to get correct behaviour out of the box?

Browser: Chrome 69.0.3497.100 Jupyter version: 4.4.0

mikecroucher avatar Oct 04 '18 10:10 mikecroucher

Adding :set term=xterm to ~/.vimrc doesn't solve it.

mikecroucher avatar Oct 04 '18 10:10 mikecroucher

Adding :set term=builtin_ansi to ~/.vimrc does solve the issue. Is there a value for this vi term variable that's specific to jupyter console?

mikecroucher avatar Oct 04 '18 10:10 mikecroucher

I have this issue right now too, and it seems that the adding :set term=builtin_ansi to ~/.vimrc does solve the issue for me too. This is a ridiculous thing to happen though.

nathaniellarson avatar Oct 02 '20 18:10 nathaniellarson