As a nano fan, I find vi very baffling! But in some scenarios I need to use vi (such as debugging in a docker container). So, here are the basics below.
There are two basic operating modes. Navigation mode and editing mode.
ESC to go back to navgation
Press x to delete a character or i to insert
dd to remove line below cursor
Type :wq to save your changes and quit vi.
Type :q to quit
Type :q! to force quit without saving changes
Play Blokr Now FREE!
blokr.io the web game where you can eat other blocks!