I want to have a special file where each line starts with a timestamp, right now I could do it with an abbreviation for example:
:iab <expr> ts strftime("%F %T") This works if I manually type ts when I add a new line. But is there some way to automatically create new lines with pre-filled timestamp at the beginning, and if there is no text on that line then not to include the timestamp at all.
Trying to make an audit log for myself to capture any interruptions from my environment during programming, and would really like to just type text and have it timestamped.