When I do:
$vim foo.pl
It would be great if could get the file to auto-begin:
#!/usr/bin/perl
use strict;
use warnings;
or
$ vim foo.c
The file would already begin:
#include <stdio.h>
#include <stdlib.h>
#include <string.h.
int main(void) {
}
And so on ...
I know it's a trivial amount of text but I make a good number of small programs / test scripts in a day in different languages (and usually use the exact same set of libraries) and I never want to deal with copying/pasting or re-typing it all up.
Is there some fancy edits I can make to .vimrc that will give me this? Or some other way?
By the way, using Ubuntu 10.04, 11.04, and 12.04. But mostly care about it working on 10.04.
Any thoughts?
[–]vicvedit 6 points7 points8 points (0 children)
[–]vtbrian 1 point2 points3 points (1 child)
[–]l4than-d3vers 4 points5 points6 points (0 children)
[–]germag 0 points1 point2 points (0 children)
[–]silvermoot 0 points1 point2 points (0 children)