Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview markdown on demand? #29

Closed
terryma opened this issue Mar 25, 2013 · 2 comments
Closed

Preview markdown on demand? #29

terryma opened this issue Mar 25, 2013 · 2 comments

Comments

@terryma
Copy link
Contributor

terryma commented Mar 25, 2013

Love the plugin, here's a feature request:

I keep all my notes in markdown now in Vim, it's slightly annoying to switch to a note and have the preview pop up all the time. It'd be great if it can be triggered via a mapping. I assume this would be a relatively small change, so let me know if you want me to go ahead and make it.

Thanks!

@suan
Copy link
Collaborator

suan commented Mar 26, 2013

Thanks! I take it you're aware of the instant_markdown_slow option (slows down the previewing, but doesn't prevent it from popping up when you open a file...)

I think what's best is to add a g:instant_markdown_autostart = 0 variable which can be set, after which the plugin will not start the backend server upon opening a markdown file. Then, add a function (e.g. :ImToggle, perhaps you can think of a better name) which either starts the server or sends a DELETE request. You can then create a default key binding for that function if you want, but I don't think it's really necessary.

@suan
Copy link
Collaborator

suan commented Oct 31, 2013

Pull req has been merged

@suan suan closed this as completed Oct 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants