jupyter_console
jupyter_console copied to clipboard
Arrow keys not working in vim in Jupyter console
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
Adding :set term=xterm to ~/.vimrc doesn't solve it.
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?
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.