Hi,

A.J.Mechelynck wrote:
>
> Yakov Lerner wrote:
> >
> > I fixed another bug, the '*' missing in the autocommand:
> >
> > au BufWritePre * if(expand('%') == '') | exe "file ".TempName() | endif
> > au BufWritePre * if(expand('%') == '') | exe "saveas ".TempName() | endif
> >
> > , but still no luck. I'm still getting the "E32: No file name" error.
> 
> Well, what gets displayed when you replace "exe" by "echo" or "echomsg"? 

probably nothing; I guess the file name is checked before BufWritePre is
executed.

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