> I don't know what the BufNew event is good for, but it gives me crap:
> 
> augroup foo
>     au!
>     au BufNew * call AddSomeText()
> augroup end
> 
> func! AddSomeText()
>     put = 'Text added from BufNew event!'
> endfunc
> " EOF
> 
> 
> :new
> 
> modifies text in the old window (gVim 7.1.315).

I believe that's as expected:

:help BufNew

> NOTE: When this autocommand is executed, the
> current buffer "%" may be different from the
> buffer being created "<afile>".

Ben.




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

Reply via email to