--- --- Vi tutorial =========== == A very short Vi tutorial Vi is an extremely powerful console editor based on a clever idea: the keyboard keys can be used both for normal typing (Insert mode) and for editing actions (Command mode). You just have to remember that there are these two modes of operation and how to switch between them! To switch from Command mode to Insert mode you press . +i+ (to type where the cursor is) or . +o+ (to create a new line). To switch from the Insert mode to the Command mode you press +[Escape]+. At the Command mode you can . navigate with the letters +j+, +k+, +l+, +h+ (the arrows might work also) . delete with +x+ (undo with +u+ and redo with +Ctrl-r+) . search with "/" To exit saving the file you type +:wq+ and to exit without saving +:q!+. All will become clear if you type the following on a terminal: +vi hello.txtihello worldonew line:wqcat hello.txt+ That's all! == Discover more https://www.tutorialspoint.com/unix/unix-vi-editor.htm