How do I access the current and alternate filename registers in Vim?
:echo @%
Vim provides special read-only registers that hold the current and alternate filenames.
:echo @%
Vim provides special read-only registers that hold the current and alternate filenames.
<C-r>%
In insert mode, % inserts the current filename.
"%p
The % register in Vim always contains the name of the current file.
registers #registers #editing #insert-mode #productivity #filename