Vim E492 error: not editor command: dd

I started learning vim today and installed it using

sudo apt-get install vim

Now, when I try to do something like :5dd, it gives me no editor command error. I do not know why this is so.

Am I doing something wrong? I looked at the tutorials, and wherever I look, I see that 5dd is a valid command.

+5
source share
1 answer

:5dd- This is not the same as just 5dd. You use 5ddin normal mode to delete 5 lines, you can use :5deleteor just :5dto perform the same action as the command.

+5
source

All Articles