Vim

Lesson 1

The cursor is moved using either the arrow keys or the hjkl keys

h (left), j (down), k (up), l (right)

To start vim from the shell prompt type

vim some-file <ENTER>

To exit vim

:q! --> force quit without saving 
:q --> quit without saving 
:wq --> save and quit 

To delete the character at the cursor

x

To insert or append text type

i --> type inserted text --> insert before the cursor 
A --> type appended text --> append at the end of the line

Lesson 2

To delete from the c

Last updated