normal·mode
~ / registers / put-variantslesson 5/5

More ways to put: gp, ]p, counts and Ctrl-r

Choose where the cursor lands, match indentation, and paste while typing.

4 drills

  1. Put and land after it: gp / gP: Put register a where the target shows it and finish with the cursor where the target's cursor is, using one put command.
  2. Put with matching indent: ]p: The unnamed register holds a line with no indentation. Put it below the cursor line, indented to match, with ]p.
  3. Several copies with a count: Make the copies shown in the target with one yank and one put with a count.
  4. Paste while typing: Ctrl-r: Register a holds the text the target needs. Type the new text and drop register a into it with <C-r>a, without leaving Insert mode.

The drill editor loads in your browser.

outside the editor the page is in normal mode: ? keymaps · / find · : commandsfound this useful? ☕ support it ·credits · source · not affiliated with Vim or Neovim