vim_tutor1 - Lesson 1 SUMMARY 1 The cursor is moved using...

This preview shows page 1 - 2 out of 2 pages.

Lesson 1 SUMMARY1. The cursor is moved using either the arrow keys or the hjkl keys.h (left) j (down) k (up) l (right)2. To start Vim from the shell prompt type: vim FILENAME <ENTER>3. To exit Vim type: <ESC> :q! <ENTER> to trash all changes.OR type: <ESC> :wq <ENTER> to save the changes.4. To delete the character at the cursor type: x5. To insert or append text type:i type inserted text <ESC> insert before the cursorA type appended text <ESC> append after the lineNOTE: Pressing <ESC> will place you in Normal mode or will cancelan unwanted and partially completed command.Lesson 2 SUMMARY1. To delete from the cursor up to the next word type: dw2. To delete from the cursor to the end of a line type: d$3. To delete a whole line type: dd4. To repeat a motion prepend it with a number: 2w5. The format for a change command is:operator [number] motionwhere:operator - is what to do, such as

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture