vim autopopulate file

Posted by David Oneill on Stack Overflow See other posts from Stack Overflow or by David Oneill
Published on 2010-04-26T15:50:46Z Indexed on 2010/04/26 15:53 UTC
Read the original article Hit count: 159

Filed under:
|

Is it possible to have VIM auto populate a file based on the extension?

For example, when I open a new .sh file, I would like VIM to automatically type

#!/bin/bash

as the first line. (This example simplified down to the essentials)

© Stack Overflow or respective owner

Related posts about vim

Related posts about automation