- Check if VIM is installed
$ vi
- Exit out of it :
:q
- Normal mode - Exit without saving changes
:q!
- Normal mode - Write changes in a file :
:w
- Normal mode - Write changes and quit :
:wq
- Normal mode
- Normal Mode - When we start vim
:
- When we execute a command.
- Insert Mode -
i
to enable it- To leave insert mode press
escapse
key.
- To leave insert mode press