Matt Gillooly bio photo

Matt Gillooly

"Good judgement is the result of experience. Experience is the result of bad judgement." — Fred Brooks

Twitter LinkedIn Instagram Github

In a recent post, I shared the Bash function that I’ve been using to streamline my Markdown editing workflow. Soon after, I was directed to a plugin for Sublime Text which enabled Markdown previewing directly from the editor. Previewing Markdown from my editor was a compelling idea, so I went in search of a similar plugin for Vim.

The Vimscript I found looks great. However, I had been meaning to learn Vimscript for some time, and it seemed like this would be a quick first project to get my feet wet. I started with hojberg’s Vest plugin as a template, and I had implementes my function as a Vim plugin in less than half an hour.

So, I present to you: my vim-markdown-preview plugin.

It was very easy to get started, and the plugin has already proven handy while writing this post. I would not be surprised if I soon switch to swaroopch’s more feature-rich plugin for my actual day-to-day use, but this has definitely been a worthwhile learning experience. Next time I want to customize my writing or development workflow, I won’t hestitate to hack out some Vimscript to get it done.

As a next step, hojberg recommended that I read Learn Vimscript the Hard Way. It looks like a solid resource, if well beyond the scope of this afternoon’s hacking.