You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So using the option let vim_markdown_preview_temp_file=1 causes a "Your file was not found" in the browser.
Obviously the file was deleted a bit too soon. This may be due to my configuration. Here is what I am using atm :
" vim-markdown-preview
let vim_markdown_preview_toggle=0 " <C-p> to open preview
let vim_markdown_preview_temp_file=1 " Automatically removes rendering file.html after usage
let vim_markdown_preview_github=1 " Use github API
But if I remove the third line (Use github API), I don't get this error. I get a blank page as expected (I only have grip installed) and after refreshing I get the "File not found" error which is a normal behavior.
Vim flavour : neovim
browser : Google Chrome
OS : (X)ubuntu 16.04.2x64
Also I had some trouble installing grip. As I missed the option relative to github the first time, I tried reinstalling grip which resulted in some error I had to circumvent using pip install --user grip. I don't think this is causing the problem but I may be wrong.
I'm disabling the auto remove until then.
The text was updated successfully, but these errors were encountered:
I think this is related to the comment about a slow browser might error. Using grip and calling github could be an issue also. To make this work on a mac with safari I just changed the sleep time from 200m to 1000m in the vim-markdown-preview.vim file:
if g:vim_markdown_preview_temp_file == 1
sleep 1000m
call system('rm vim-markdown-preview.html')
endif
It is slower... but an extra 800m is not throwing off my output too much :)
So using the option
let vim_markdown_preview_temp_file=1
causes a "Your file was not found" in the browser.Obviously the file was deleted a bit too soon. This may be due to my configuration. Here is what I am using atm :
But if I remove the third line (Use github API), I don't get this error. I get a blank page as expected (I only have grip installed) and after refreshing I get the "File not found" error which is a normal behavior.
Vim flavour : neovim
browser : Google Chrome
OS : (X)ubuntu 16.04.2x64
Also I had some trouble installing grip. As I missed the option relative to github the first time, I tried reinstalling grip which resulted in some error I had to circumvent using
pip install --user grip
. I don't think this is causing the problem but I may be wrong.I'm disabling the auto remove until then.
The text was updated successfully, but these errors were encountered: