I have tried to follow the following:
How to delete selected text in VI editor
but
5dd
gives
E492: Not a
it is dxd, not ddx
if you want to delete 5 lines, cursor to the beginning of the first line to delete and d5d