To add, here is an interesting resource on how one might go about doing that using Vim and LaTeX:
It seems like this is more than fast enough to keep up with the lecture and have something to review properly after the lecture is over.
This is truly incredible to me.