Change file


  1. Type vim hello.txt. The editor opens, the cursor is on the "h" of the "hello".
  2. Press ~ to change the case of "h" to be "H"
  3. Press 5l (lower case L) to move 5 characters to the "w".
  4. Press rW to replace "w" by "W".
  5. Press o to switch to insert mode on the line below.
  6. Type in: "and welcome to vim!"
  7. Press ENTER and continue typing: "This is the 3rd line.
  8. Press ESC to switch back to command mode.
  9. Type :wq this will save the file and quit vim.