Skip to content

Instantly share code, notes, and snippets.

@NISH1001
Last active July 16, 2018 15:04
Show Gist options
  • Save NISH1001/359a8573f3175ac631a64d866120d2f0 to your computer and use it in GitHub Desktop.
Save NISH1001/359a8573f3175ac631a64d866120d2f0 to your computer and use it in GitHub Desktop.

a simple text file with timestamp

vim +'r!date' ~/did.txt

a simple text file with timestamp and automatic insert mode at the end of the file

vim +'normal Go' +'r!date' ~/did.txt

Finally! Create alias

alias did="vim +'normal Go' +'r!date' ~/did.txt"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment