Closing a VI connecting via apple terminal

AnthroAndStargate

Golden Member
Oct 7, 2005
1,350
0
0
Do any of you linux/unix heads know how to exit VI under a terminal ssh session with a remote linux box?

im stuck in vi and cant get out! when i press esc and type qi! then press enter it does nothing.

any help would be greatly appreciated! thanks!
 

bearxor

Diamond Member
Jul 8, 2001
6,605
3
81
Are you getting an error that says E492: Not an editor command: qi!

Because 'i' is not a valid vi command.

Reminder:
quit - : q (except together)
write and quit - :wq
force write and quit - :wq!
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
im stuck in vi and cant get out! when i press esc and type qi! then press enter it does nothing.

It really depends on what you did. It might not even be a vi problem, for example most terminals take ctrl+q to enable xon which usually freezes the window. If you hit ctrl+s it'll resume output and everything you've banged on in frustration will happen.

Just use pico

He probably wants to exit vi first...