how to edit with vi ediotr code example
Example 1: linux vi
Use Vim instead of Vi. Vim is easier to use.
Example 2: edit in vim
Press i letter on your keyboard to start editing (Insert Mode). When youre done press the ESC key to exit insert mode