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 @phantomwise Also, in vim-y β€œEasy Mode”Ctrl-L should take you to normal mode. (Although if Ctrl-Q is broken who knows if Ctrl-L won’t be too. πŸ€·πŸ»β€β™‚οΈ)
@normalmode @jonatancortes Ooh that works too ! ❀️

@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 ! ❀️