Y
Hacker News
new
|
ask
|
show
|
jobs
by
davidcollantes
463 days ago
For the uneducated, how do you use those? Is there a way to insert those automatically, just like the submission does?
2 comments
stevekemp
463 days ago
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.
link
davidcollantes
463 days ago
I got it. One enters `dtt`, or `dts` and space. It gets replaced by date, or timestamp accordingly. Pretty neat!
link
Kinda useful if you want to manually add date/time to lines, but a different thing.