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

How do you use the alternate file register?

Answer

<C-r>#

Explanation

The # register holds the alternate (previously edited) filename. In insert mode, <C-r># inserts it. In normal mode, <C-^> switches to it.

Next

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