Comments (14)
@perrygeo to check, do you have either markdown
or grip
installed as per the requirements?
What happens if you manually do markdown file.md > /tmp/vim-markdown-preview.html
?
from vim-markdown-preview.
I'm having some trouble reproducing this. Can you pull the latest commits and see if the error persists?
To get more context:
- What operating system are you using?
- What version of vim are you on?
- What happens if you remove all the buffer specific parts of the variables in question? For example, remove the
b:
before the variables in your error.
Thanks!
from vim-markdown-preview.
Hey @zarry are you using any of the provided vim-markdown-preview options? If so, let me know.
from vim-markdown-preview.
I found this problem went away when I surrounded the equals signs with space characters
from vim-markdown-preview.
I can reproduce this error on OS X Yosemite, vim 7.4, installed in bundle for pathogen. This error occurs out of the box for me.
from vim-markdown-preview.
@perrygeo having the same issue out of the box
Error detected while processing function Vim_Markdown_Preview:
line 17:
E121: Undefined variable: b:vim_markdown_preview_github
E15: Invalid expression: b:vim_markdown_preview_github == 1
line 40:
E121: Undefined variable: b:vim_markdown_preview_temp_file
E15: Invalid expression: b:vim_markdown_preview_temp_file == 1
from vim-markdown-preview.
@zarry @perrygeo @michaelghinrichs Can you pull again? I changed the way variables were checked and moved everything to a global scope in 1cb7414
Let me know if this error persists.
from vim-markdown-preview.
The error goes away for me. But it doesn't function properly - Ctrl-P opens a browser window at file:///tmp/vim-markdown-preview.html
but the file is blank
from vim-markdown-preview.
@perrygeo Are you using any flags (possibly let vim_markdown_preview_temp_file=1
?) If so, check to see if the file /tmp/vim-markdown-preview.html
actually exists. It could be that the file is being deleted before your browser opens it.
from vim-markdown-preview.
I haven't messed with any variables, just installed to ~/.vim/bundle, open md file, Ctrl-P. The file is created and still exists but is empty
$ ls -alth /tmp/vim-markdown-preview.html
-rw-r--r-- 1 mperry wheel 0B Nov 11 15:01 /tmp/vim-markdown-preview.html
from vim-markdown-preview.
Yes, I have grip
installed globally. In fact that's what I've been using to render markdown in lieu of a working vim plugin.
$ grip
* Running on http://localhost:6419/ (Press CTRL+C to quit)
from vim-markdown-preview.
In order to use grip (and Github flavored markdown), put github flag in your vimrc:
let vim_markdown_preview_github=1
Apologies if this was unclear from the README. Does this work?
from vim-markdown-preview.
@JamshedVesuna Yes! That was it. Can you specify that in Requirements (Options should be optional). In chosing markdown vs grip as your rendering engine, it's not clear that the later choice requires additional action.
from vim-markdown-preview.
Added quick documentation in b51ecf2.
from vim-markdown-preview.
Related Issues (20)
- This plugin doesn't support arch HOT 2
- How do I set url?
- Support for Brave Browser HOT 3
- Doesn't work with remote files HOT 2
- Suggestion - Better syntax highlighting in ```code``` ```enhancement```
- executing job failed: Bad CPU type in executable - Mac M1
- html file created
- 500 Internal Server Error HOT 2
- Allow preview to be displayed in kiosk mode? HOT 2
- 'call Vim_Markdown_Preview()' can't open the chrome automatically HOT 5
- Opens a new tab on every buffer write on Firefox 60.0.1 HOT 7
- adding syntax highlightening?
- Markdown not matching with Github HOT 1
- Change the top title
- CSS 404 not found HOT 1
- Vim_Markdown_Preview_Local error HOT 1
- "Please install the necessary requirements: https://github.com/JamshedVesuna/vim-markdown-preview#requirements" HOT 1
- wrong error if attempting preview if the file is not saved
- How to Install Daring Fireball's Markdown.pl? HOT 2
- Can you make it more clear which `grip` you are referring to in the README
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-markdown-preview.