I'm using a very nice template plugin called tSkeleton. Right now I'm
operating it using an autocmd in my .vimrc:
    autocmd BufNewFile *.f90      TSkeletonSetup fortran.f90

This works great when I start a new buffer from within .vim. However
sometimes I want to touch and name a new file and then open it
directly by double clicking on it in my GUI (a boorish practice, I
know ;).

So what I would like is an autocmd for the event that a new buffer is
entered AND that buffer is empty. Having checked the documentation on
autocmd, I don't think such an event exists. So is there an elegant
way to test for whether the file is blank or not?

Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to