Zuckonit
Zuckonit

Reputation: 685

Opening HTML in Vim by Using the Quickrun.vim Plugin

Is anyone using a Vim plugin called QuickRun? With it, you can easily run your current code (in many languages) by typing :QuickRun. But,how can I run HTML code with it?

I am using Ubuntu. And I realize I can use this !gnome-open %, but what about QuickRun?

Upvotes: 1

Views: 301

Answers (2)

Geoff Reedy
Geoff Reedy

Reputation: 36011

Looks like if you add

let g:quickrun_config = {}
let g:quickrun_config.html = {'command' : 'gnome-open'}

to your .vimrc it will do what you want.

Upvotes: 2

romainl
romainl

Reputation: 196546

Reading the blurb, I don't see HTML in the list of supported filetypes. You will need to read the documetation (:help quickrun) in order to add support for HTML.

Or use the much much much simpler !gnome-open %.

Upvotes: 0

Related Questions