You can't have a preview command for vi without also including one for emacs...
(defun markdown-preview-file ()
"run Marked on the current file and revert the buffer"
(interactive)
(shell-command
(format "open -a /Applications/Marked.app %s"
(shell-quote-argument (buffer-file-name))))
)
(global-set-key "\C-cm" 'markdown-preview-file)
Just put it into your .emacs file, command key is "Ctrl-c m".
Great, thanks for this! And to make me feel productive, here's a bash script that opens a .d file in Marked from the Terminal.
Marked was awesome from day one, but these scripts take it to a whole new level. Thanks.
I also love this 'Display In Marked' service http://fnurl.se/better-disp...
I modified it to save a temporary text file to my Desktop.