vimtricks.wiki Concise Vim tricks, one at a time.

How do you paste from a register with automatic indentation?

Answer

"a]p

Explanation

Use ]p after specifying a register to paste with adjusted indentation. "a]p pastes register a contents matching the current line's indent level.

Next

How do you yank a single word into a named register?