just a note / in this case cf r!date & terminal ...
Version 2. A simple txt file with time stamps
vim on your command line allows options and this includes running “ex commands”. Here we run the r read command and read the date command into the file as a timestamp at the top of the file.
$ vim +'r!date' ~/did.txt
Version 3. A simple txt file with natural time stamps
Its likely more natural for you to type at the bottom of the file so with normal Go we move the cursor to the bottom before reading from the date command.
$ vim +'normal Go' +'r!date' ~/did2.txt
Final Version. An alias to open did.txt
Final Step: Create your alias and add this to your .bash_profile.
alias did="vim +'normal Go' +'r!date' ~/did.txt"
from https://theptrk.com/2018/07/11/did-txt-file/
last updated july 2018