Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For the uneducated, how do you use those? Is there a way to insert those automatically, just like the submission does?


Those are basically string-replacements. Add those lines to .vim/vimrc, and when you type "dtt" or "dts" that text gets replaced with a time/date stamp.

Kinda useful if you want to manually add date/time to lines, but a different thing.


I got it. One enters `dtt`, or `dts` and space. It gets replaced by date, or timestamp accordingly. Pretty neat!




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: