Ian Taylor wrote:

> There seems to be some strange behavior when using the buftype=acwrite
> mode.
> 
> mkdir testdir
> vim
> 
> :set buftype=acwrite
> :autocmd BufWriteCmd <buffer> echo 'requested write'

The file pattern is missing.

> :file testdir
> :w
> 
> This causes an error that 'testdir' already exists.
> 
> It works when I do
> :w!
> but, that doesn't seem like it should be necessary.
> 
> This seems like incorrect behavior since buftype=acwrite means that
> writes really take place by the autocmd. In my case, this involves
> network traffic and I don't care about the local filesystem at all.

You must make sure yourself that the BufWriteCmd autocommand takes care
of the writing.  See ":help E767".

-- 
hundred-and-one symptoms of being an internet addict:
189. You put your e-mail address in the upper left-hand corner of envelopes.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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

Raspunde prin e-mail lui