From a4a108acd34f7622fa0aef3cd5ff90c63a50cc15 Mon Sep 17 00:00:00 2001 From: James McGlashan Date: Sun, 11 Dec 2011 04:51:34 +1100 Subject: [PATCH] added a vim helper plugin; currently only one function, in which takes any file; colorizes it and gives you an output html file. --- plugins/vim/vim.plugin.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/vim/vim.plugin.zsh b/plugins/vim/vim.plugin.zsh index 7d3002734..5a6b65616 100644 --- a/plugins/vim/vim.plugin.zsh +++ b/plugins/vim/vim.plugin.zsh @@ -1,3 +1,5 @@ -# Aliases to commands one may use with vim. +# Vim helper plugin. # Colorize the source of a file and create a html file. -alias code2html="vim omz -f +'syn on' +'set background=dark' +'colorscheme pablo' +'TOhtml' +'w' +'qa' &>/dev/null" +code2html() { + vim $@ +'syn on' +'set background=dark' +'colorscheme pablo' +'TOhtml' +'w' +'qa' &>/dev/null +}