The VI editor is a screen-based editor used by many Unix and Linux users. Following are a few common keyboard commands you'll need when using VI.
k = up
j = down
w = right or forward one word
b = left or back one word
l = right 1 char
h = left 1 char
x = delete 1 char
u = undo
i = insert
dd = delete entire current line
[ESCAPE] = get out of edit mode
:wq = write and quit
:q! = quite ignoring changes (do not write)