How to use Vim for the grid

Follow these steps to use the Vim (Vi IMproved) text editor.

Note: See video tutorial

 

Step 1

Log on to the Grid.

Step 2

Use vim to modify one of your files. In this example, the user is editing the text file Grid_User. Type vim filename then press Enter.

You will now see the text of the original file.

Step 3

To insert text, press the I key. You will notice the words INSERT near the bottom. Move the cursor where you want to input text by using the arrow keys and then type. In this example, one sentence was added beneath the previous text.

Step 4
  • To exit saving your changes, press the Esc key. This takes you out of Insert mode.
  • Press the  colon key (:), and then type wq (:wq). This stands for write and quit, meaning you want to save and quit.
  • Press enter.
  • If you want to just save, you can type :w and if you want to quit without saving changes, you can type :q!.

You have now edited a file and saved it.