I think the only thing John didn't cover was this:
On 2009-09-20, benjamwelker wrote:
> I am also not sure if I am calling that function properly:
>
> " autoload my funcitons
> if !exists("autocommands_loaded")
> let autocommands_loaded=1
> autocmd BufWrite,BufWritePre,BufWriteCmd,FileWritePre,FileWriteCmd
> call CleanupFile()
> endif
For what you want to do, I think the only event you need is
BufWritePre (or BufWrite--they're the same). Your autocommand is
missing a pattern. This should work:
autocmd BufWritePre * call CleanupFile()
HTH,
Gary
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---