Hi,

Charles E Campbell Jr wrote:
> Yakov Lerner wrote:
> 
> > Now that my attempt to write unnamed buffer under
> > name /tmp/N failed, I want to autoname empty buffer.
> > My first attempt does not work. Autoevent is ot invoked.
> 
> 
> The autocmd system is always invoked based on the buffer name.
> Thus it appears none of the autocmds will fire, including BufWriteCmd,
> BufReadCmd, CursorHold, etc. 

  :au BufNew * echo 'File name is "' . expand('<afile>') . '".'

is fired for empty buffer names, too, and will output

  File name is "".

in this case.

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

Reply via email to