Git Product home page Git Product logo

Comments (14)

JamshedVesuna avatar JamshedVesuna commented on May 21, 2024 1

@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.

JamshedVesuna avatar JamshedVesuna commented on May 21, 2024

I'm having some trouble reproducing this. Can you pull the latest commits and see if the error persists?

To get more context:

  1. What operating system are you using?
  2. What version of vim are you on?
  3. 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.

JamshedVesuna avatar JamshedVesuna commented on May 21, 2024

Hey @zarry are you using any of the provided vim-markdown-preview options? If so, let me know.

from vim-markdown-preview.

jmgregory avatar jmgregory commented on May 21, 2024

I found this problem went away when I surrounded the equals signs with space characters

from vim-markdown-preview.

perrygeo avatar perrygeo commented on May 21, 2024

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.

karismatic-megafauna avatar karismatic-megafauna commented on May 21, 2024

@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.

JamshedVesuna avatar JamshedVesuna commented on May 21, 2024

@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.

perrygeo avatar perrygeo commented on May 21, 2024

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.

JamshedVesuna avatar JamshedVesuna commented on May 21, 2024

@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.

perrygeo avatar perrygeo commented on May 21, 2024

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.

perrygeo avatar perrygeo commented on May 21, 2024

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.

JamshedVesuna avatar JamshedVesuna commented on May 21, 2024

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.

perrygeo avatar perrygeo commented on May 21, 2024

@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.

JamshedVesuna avatar JamshedVesuna commented on May 21, 2024

Added quick documentation in b51ecf2.

from vim-markdown-preview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.