How can I extit vi in the terminal (in a ssh session)?

When I use Tools->Start SSH Session... I am on an external server.

There I can write something like "vi composer.json"

But there is now possibility to exit vi.

Nothing is working: <ESC>, :q!, ZZ

On the local system I can use :q!, but on a ssh-server???

5 comments
Comment actions Permalink

You can exit the edit mode with Ctrl+C and then quit with :q! as usual.

0
Comment actions Permalink

Thanks for your hint, but I noticed, that this is not the main problem.

Main problem: it is not possible to use vi/vim in the bash at all.

E.g. when I press <down> the screen scroll down like I used <PgDn>. Or when I type Ctrl+C and then : appears this on the screen:  [?6c  

 

0
Comment actions Permalink

I can reproduce neither of these issues, here's a quick screencast.
What OS are you using? Does it happen on any server you connect to?

0
Comment actions Permalink

OK, it does not happen on any server.

I noticed this on Mittwald-servers: https://www.mittwald.de/

So it is not a common problem, but its no problem when I log in via PuTTY.

0
Comment actions Permalink

Please check the following ticket:
https://youtrack.jetbrains.com/issue/IDEA-224611

Could it be your case as well?

0

Please sign in to leave a comment.