The command:
$ vim someFile
either creates an empty file named someFile within the current directory (if a file with this name doesn't exist) using the vim command-line text editor, or opens an existing file named someFile. Within the vim editor, you can change, delete, and add content.
Here are links to some great vim guides and YouTube videos: