Using vi you can edit any file you want

Let’s see how this works, type vi and the file name.

If you need to type some content inside this txt document, press i (insert)

And now you can type anything you want.

If you need to add a new line, just put the cursor where you need to add this new line and press o

If you need to modify one letter, put over the cursor and press r and the letter you want to replace.

To save this changes and exit, first you need to press esc. You can see -- INSERT -- has disappeared and now you need to type:

w is writing and q means quit.

Leave a Reply

Your email address will not be published. Required fields are marked *