Hacker News new | ask | show | jobs
by an6n 3889 days ago
Thank you for your reply, I should've been more detailed in my question. I think I would prefer a setup where I edit using vim and the rendered html is instantaneously rendered next to the vim window. However, I think that embedding images from clipboard is tricky using vim, at least to my knowledge. So I don't really know how to setup an efficient workflow regarding that.

I think I will have to take a look at that jekyll now next. :)

2 comments

> However, I think that embedding images from clipboard is tricky using vim, at least to my knowledge.

Yes. In general you'd want either a full URL or a local, relative URL, in order to source images from "the clipboard" to vim. Perhaps there are some plug-ins that allow drag-n-drop? There certainly must be some plug-ins for vim that could watch a folder(tree) and auto-complete (so you could have your blog.git/images-folder, and paste an image there, then link that via an image-tag in markdown, and have vim auto-/omni-complete the name, so you could easily link to images/filename-of-pasted-image.jpg).

Generally, most mature markdown-blogging solutions will have some form of live-relaod -- so all you need is to trigger a write to disk in order to see an update in the browser. Not quite as-you-type -- but probably good enough.

if you're on the mac then you can use the Marked 2 App. It's a live preview of your markdown file that updates every time you save the file. I use it with Vim regularly. There's even a vim plugin to open the current buffer in it https://github.com/itspriddle/vim-marked