Skip to content

Instantly share code, notes, and snippets.

View samizdatco's full-sized avatar

Christian Swinehart samizdatco

View GitHub Profile
@echristopherson
echristopherson / vimcat.sh
Created November 16, 2012 21:12
Modified version of Matthew Wozniski's vimcat.sh
#!/bin/bash
#!/usr/bin/env vim
#! This is a bash script that executes itself as a vimscript to do its work
#! vim:ft=vim:ts=2:sts=2:sw=2
: if 0
tmpfile=$(mktemp -t vimcat.XXXXXXXX)
exec 9<>"$tmpfile"
rm "$tmpfile"