I use vim for coding and also for writing scientific articles and book chapters.
It would be very interesting to know the time I spent on a file. For example how many hours or minutes the buffer was open in total, per day, etc.
Ideally, one also could see the writing speed (I use Colemark and Steno/Plover for writing).
I did not find a suitable plugin; is there one? How could I build my own 'academic writers' plugin?
I mainly program in Python, but I would adjust to other programming languages, if necessary (I am co-author of Pandoc-Scholar).