Vi editor freeze my terminal

Is there a reason why my terminal get freeze when I open vi editor, it doesn’t always happen but is annoyingly frequently. I’ve tried reinstall it or install vim-enhanced, same happens. I have managed to get the task done but it increase the difficulty enormously. It has happen in several tasks so there is no particular task pointed. The terminal stay with a blinking cursor and no insert or any other commands work, can’t even exit. Thanks in advance

Same problem, no solution for now.
In this case I just install mc and use mcedit.
This problem appear in most of the linux tasks, but no in kubernetes or ansible block.

thanks, at least now I know a workaround