aperezdc/vim-template — pull request #1 by Raimondi (2012-03-22 22:56:15+00:00)
Title: Prevent TLoad() from loading a template if the buffer is not empty.

Hi,

I'd like to thank you for this nice plugin. Me and some other Vim users are using your plugin as the template engine for a plugin(1) that provides some help with Vim plugins development. We thought on implementing our own engine, but yours is a great fit for our needs.

The only issue we had so far is that on `*.txt` files `TLoad()` is fired after we already filled the buffer with `:Template`. The problem with that is that we can't find a reliable way to remove the 'extra' text added by `TLoad()`.

This pull request tries to fix that. Please, let me know if you like it, I'll be more than happy to work on a solution that you'd find acceptable.

Cheers!
Israel

(1) https://github.com/dahu/Area-41