#!/bin/sh cat << EOF | "${EDITOR:-vim}" #include <stdio.h> int main(void) { return 0; } // vim: ft=c EOF