vi
The standard full-screen editor available under Unix.

Using Command mode
ZZ - save file and exit
:q! - exit without save
:w - write buffer to disk
h (left) j (down) k (up) l (right)
ndw - delete n words (default for n = 1)
nx - delete n characters (default for n = 1)
ndd - delete n lines (default for n = 1)
- - go to start of previous line
^ - go to first non-blank character of current line
O - go to first column of current line
$ - go to end of current line
nG - go to nth line of file (default for n = 1)
nyy - yank and save n lines
p - put down lines saved

Using INSERT MODE
<esc> - exit INSERT mode
i - enter INSERT mode ; insert to left of cursor
a - enter INSERT mode ; insert to right of cursor
A - enter INSERT mode ; add at end of current line
o - enter INSERT mode ; add a new line after current line
O - enter INSERT mode ; add a new line before current line
/<pat> - search from cursor down for pattern <pat>
?<pat> - search from cursor up for pattern <pat>
n - go to next occurrence of last pattern indicated
N - go to previous occurrence of last pattern indicated

computer2know :: thank you for your visit :: have a nice day :: © 2018