On Oct 21, 6:39 pm, oversky <[email protected]> wrote:
> I am writing a script to run several commands.
> The W12 warning message will jump out when I update
> the source file externally.
> I have tried autoread, but it can't suppress the warning.
> Is there any other command that can help?

By design, autoread only takes effect when the buffer is unmodified.
Otherwise, any unsaved changes in Vim would be lost. :help W12 says
"This message is not given when 'buftype' is not empty" so if your
script has a clever way of syncing up the unsaved buffer with the disk
contents, this may be the way to go. Make sure you DO have a way of
syncing up though, or your changes in Vim or on disk could easily be
lost.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to