When creating a new file with vim, I would like to automatically add some skeleton code.
For example, when creating a new xml file, I would like to add the first lin
You can add various hooks when files are read or created. to
:help event
and read what's there. What you want is
:help BufNewFile