user/jszakmeister: only expand templates in an empty buffer

The user can set g:OnlyInsertTemplateOnEmptyBuffer to 0 if they want to
override this behavior.  In this case, we'll delete the content of the
buffer and expand the template.