xuhdev / vim-latex-live-preview

A Vim Plugin for Lively Previewing LaTeX PDF Output
https://www.topbug.net/blog/2013/06/13/live-preview-of-latex-in-vim/
GNU General Public License v3.0
834 stars 74 forks source link

Find lost tex file #87

Closed Yemeen closed 4 years ago

Yemeen commented 4 years ago

I closed my tex file without saving, but the live preview of the pdf remains. Does live-preview save a copy of the tex file somewhere or am I out of luck?

xuhdev commented 4 years ago

In your system temporary directory (e.g., /tmp or /tmp/your_user_name), there might be a directory named vim-latex-live-preview-xxxxx. Your file might be in that directory. If not, I'm afraid you are out of luck. (Don't reboot! Otherwise it may be gone forever)

Yemeen commented 4 years ago

Even in Macos? When viewing it on skim I noticed this Screen Shot 2019-09-30 at 5 17 35 PM.

But when searching through tmp, I can find no such folder. Would putting it to sleep clear the tmp files?

xuhdev commented 4 years ago

I'm not sure -- tmp files can be cleared regularly whenever the OS feels beneficial.

Yemeen commented 4 years ago

Found it! For reference this was the folder it was in for anyone who doesn't save often like me.

Screen Shot 2019-09-30 at 5 40 16 PM