Skip to content

Instantly share code, notes, and snippets.

@tommymcdonald
tommymcdonald / gist:76cab50cad1cdff7ad4a
Created February 10, 2015 07:03
Vim toHTML one-liner
## converts files to html and
## opens them in browser.
## add to .bashrc or .zshrc & source the file
# usage: vimhtml yourfilename
vimhtml(){
ext=".html"
vim -f +"syn on" +"TOhtml" +"wq" +"q" $1
open $1$ext