Visual Insert
- Type vim hello.txt. The editor opens, the cursor is on the "H" of the "Hello".
- Press 2yy followed by p. The first 2 lines were yanked into memory (copied) and the pasted above the current line.
- Press Ctrl-v to switch to visual mode.
- Press 2j to mark 2 more lines under the current line.
- Press I (Shift i) to switch to insert mode.
- Type in "vim! "
- Press ESC
- After a second "vim! " will appear on the second and third lines as well.
- Type :wq to write file and quit vim.