In vim we can type Ctrl+v then Number in insert mode to insert special characters. This is mostly used to insert control characters. But any characters can be inserted if we know the ASCII number. E.g. typing Ctrl+v then 1, 2, 6 will insert a '~' character. See: http://vimdoc.sourceforge.net/htmldoc/insert.html#ins-special-keys I'd like to have the same or similar behaviour with zsh line editor. Note, I am using zsh in vi mode, but I don't think that matters. I've found that inserting an enter can be done with Ctrl+v then Ctrl+j, see: In ZSH line editor, how to insert a new line?. But how do I insert a tilde?
I need this, becasue I am working with a dumb citrix client, with which I cannot type the '~' character.