For unix-like systems vim comes installed by default
If you have a graphical operating system, vim is not very useful, you can use a graphical text editor, such as sublime.
vim is a terminal text editor.
In my case I don’t have a friendly graphical interface, I use Ubuntu server, there is only the command line.
That’s why vim is very useful to me.
Open a file with vim
vi file.txt
then the file opens and you can’t insert text.
To insert text you must be in text insertion mode:
This is done by touching the key
i
After adding text to the file you must save it.
That is done by touching
escape
and then below you write
:w
and
Enter
to exit a file
:q
and
enter
both things
:wq
and
enter