greyblake / vim-preview

Vim plugin for previewing markup files(markdown,rdoc,textile,html)
GNU General Public License v2.0
209 stars 29 forks source link

Include / Load Github stylesheet #32

Closed blueyed closed 10 years ago

blueyed commented 10 years ago

I just thought that it would be great, if the Markdown preview would use the Github stylesheet.

This might be useful in general, by defining a custom command and/or passing some context somehow.

E.g. for the Github case, it could detect if there's a git remote that matches github.com and then apply the "use the github stylesheet" with the preview commands (most probably PreviewMarkdown then).

I have not looked at the internals, and maybe this is possible already?

There is g:PreviewCSSPath, which you could use in a custom command, wrapping the call to Preview. I might give this a try, when coming across vim-preview again.. :)

greyblake commented 10 years ago

Addressed in 938239246bceb269ed38250059bea011476e69aa I use this stylesheet: https://gist.github.com/tuzz/3331384

blueyed commented 10 years ago

Much better! Thanks!