Welcome to the Vim Hates Me show !

On today's episode : Vim -y is great : it's like nano but with vim's syntax's highlighting and notepad's sensible shortcuts, which is awesome... ... ... until you make the mistake of running it in the tty

👩‍🦰 Help I can't exit vim 😭
🤖 Press ESC for normal mode then type :wq
👩‍🦰 I can't use normal mode, I used "vim -y" so I'm locked in insert mode
🤖 It's Ctrl+Q to quit with vim -y
👩‍🦰 I know and it doesn't work... I don't know why, Ctrl+Q worked fine in "vim -y" until today 😭
🤖 Alt+Q ? Mod+Q ?
👩‍🦰 Same
🤖 Try using ZZ or ZQ directly
👩‍🦰 It just types it in the file
🤖 Ctrl+C then :q!
👩‍🦰 It just types :q! in the file
🤖 Alt+C ? Mod+C ?
👩‍🦰 Same
🤖 Ctrl+Z to suspend vim
👩‍🦰 Doesn't work 😭
🤖 Alt+Z ? Mod+Z ?
👩‍🦰 Same
🤖 Force close the terminal window
👩‍🦰 Can't I'm in the tty 😭

👩‍🦰 Nevermind I found it !
🤖 Ctrl+Alt+F4 sudo pkill vim ?
👩‍🦰 Yep 😑

#vim

@phantomwise in edit mode you can press Ctrl-O and use a single normal command. Next time, you can try Ctrl-O and ZZ to see if it works.

@jonatancortes Oh wow that actually worked !

I thought I had tried everything and all the Ctrl shortcuts were broken in the tty but apparently not that one !

It's a pity the vim -y shortcuts to copy/paste/save/exit seem to be broken in the tty they were really convenient, but I guess I'll just have to learn the commands. Thanks a lot ! ❤️

@phantomwise glad it worked!