While reading or in editing mode, press ESC twice
Move the cursor to the desired location
Press ‘v’ to enter Visual mode
Use the up/down/left/right buttons to select text or entire lines
Press ‘y’ to yank (copy)
Move cursor over to the desired pasting location
Press ‘p’ to paste
Press ESC twice to exit editing mode
Type ‘:wq’ to write and quit vim editor
Categories: