News for hackers. Stuff that matters.
Re:Keeping a plaintext “did” file by xurukefi on Monday July 16, 2018 @01:58AM (#17539064)
If the file does not exist, then

    vim +'normal Go' +'r!date' ~/did.txt
creates a file with the first two lines being blank.
Re:Keeping a plaintext “did” file by theptrk on Monday July 16, 2018 @02:04AM (#17539082)
hm, good thinking, I guess I should run `touch` to create the empty file first.
Re:Keeping a plaintext “did” file by JadeNB on Monday July 16, 2018 @02:54AM (#17539280)
> hm, good thinking, I guess I should run `touch` to create the empty file first.

vim is perfectly fine if you invoke it with the name of a non-existent file; it will just create it.