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

What are the read-only registers in Vim?

Answer

%. # :

Explanation

Vim has read-only registers: % (current filename), # (alternate filename), . (last inserted text), : (last command). Cannot be written to directly.

Next

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