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

does not work in insert mode #20

Closed divinites closed 7 years ago

divinites commented 8 years ago

Hi, this is a very helpful plug-in ,thanks for your outstanding work!

In my case, it does not work when Vim is in insert mode, I can type a whole paragraph and the pdf file will not refresh; however, if I changed to command mode, then every single step, the pdf file changes. This is not a big problem, but it seems that in your demonstration, the live preview works even in insert mode.

I am using OSX el capitan, VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 5 2016 23:18:50)

with Skim and Preview (evince does not work for me, when I installed evince using homebrew).

xuhdev commented 8 years ago

What is your setting of 'updatetime'?

divinites commented 8 years ago

I tried setting update time to 1, 10, 50, 200. The results are all the same. When I typed ESC to exit the insert mode, the pdf instantly refreshed.

divinites commented 8 years ago

I noticed that there is a CursorHoldI event in the end of the plugin, so it should work in insert mode, I am quite curious about why it actually doesn't.

stale[bot] commented 7 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed. Thanks for contributing to vim-llp!