I have tried to follow the following:
How to delete selected text in VI editor
but
5dd
gives
E492: Not a
Commands listed for use in normal mode (prefix with : for command mode).
Tested in Vim.
By line amount:
By line numbers:
Backwards range given, OK to swap (y/n)?