Insert Mode is when you have a block cursor and can edit the text
Command Mode is when you have a : at the bottom where you can enter commands.
If you are in insert mode or command mode hit:
If you are not in insert mode or command mode hit:
To run vi or vim you can run it from the command line first or enable it in your IDE.