]> Pileus Git - vpaste/blob - vimhi.sh
adding vpaste and some docs
[vpaste] / vimhi.sh
1 #!/bin/bash
2
3 # Copyright (C) 2009 Andy Spencer - Public domain
4
5 input="$1"
6 output="$2"
7 modeline="$3"
8
9 # Add the modeline inline to the file then
10 # remove it after the file is loaded.
11 ex -u vimrc             \
12         "+1d"           \
13         "+TOhtml"       \
14         "+sav! $output" \
15         "+qall!"        \
16         <(echo "vim: $modeline"; cat "$input") \
17         2>/dev/null 1>&2