A better tutorial with more explanation.
It has three modes:
In a terminal:
vim file.txt to create a file named as file.txti to enter in insert modemy first vimESC to exit insert mode: to enter in command mode to tell vim what to dowq to save and quittype rm file.txt to remove the file.