Aliases brought to the ultimate level.
zgen load seletskiy/zsh-hijack
hijack:transform 'sed -re "s/^(ri|ya|fo)((no|pa|re|ci|vo|mu|xa|ze|bi|so)+)(\s|$)/ssh \1\2.in.example.com/"'
Will provide following command transformation:
$ yano
-> ssh yano.in.example.com
$ yapapa
-> ssh yapapa.in.example.com
bindkey -v "^P" hijack:history-substring-search-up
bindkey -v "^[OA" hijack:history-substring-search-up