Vim Register Use in Ex Mode
- by Peck
Potentially 2 questions in one. I would like to know how to reference a register in Ex mode.
For instance, I'm editing a file and I want to save the file with a timestamp (or just datestamp really) appended to it.
I know I can set register to the value of a shell commands output using:
:let @a = system("date +\"%Y-%m-%d\"")
Is there any to…