I have tried to follow the following:
How to delete selected text in VI editor
but
5dd
gives
E492: Not a
Type :set number (for numbered lines).
:set number