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 the not an editor command error. I’m not sure why this is.
Am I doing anything wrong? I looked at tutorials and everywhere I look I see that 5dd is a valid command.
:5ddis not the same as just5dd. You use5ddin normal mode to delete 5 lines, you can use:5deleteor just:5dto do the same thing as a command.