vi - weliame/MyDoc GitHub Wiki
- j [or down-arrow] move cursor down one line
k [or up-arrow] move cursor up one line
h or [or left-arrow] move cursor left one character
l or [or right-arrow] move cursor right one character - 0 (zero) move cursor to start of current line
$ move cursor to end of current line - w move cursor to beginning of next word
b move cursor back to beginning of preceding word - :0 or 1G move cursor to first line in file
:n or nG move cursor to line n
:$ or G move cursor to last line in file - u undo
yy copy (yank, cut) the current line into the buffer Nyy or yNy copy (yank, cut) the next N lines, including the current line, into the buffer p put (paste) the line(s) in the buffer into the text after the current line