On 18/10/08 20:35, björn wrote:
> Hi all,
>
> I have seen quite a few comments on how annoying the "File changed"
> dialog can be when many files have been modified outside Vim.
> Currently there is no way to simply say "Load All" files (short of
> setting 'autoread' but maybe you don't always want this on), instead
> there is one dialog for each modified file and clicking through more
> than one of these is just too much.
[...]
You can intercept the FileChangedShell event:
:au FileChangedShell * let v:fcs_choice = "reload"
However, if it happens to you often and for many files at a time, maybe
you should change your editing habits. I almost never get that dialog,
and when I do it's because I've let it happen by keeping open in Vim a
file which I knew would be changed outside of it. When it does happen,
loading the file is not always what I want to do: sometimes I prefer to
"Cancel" the dialog then ":quit!" the file in question (with bang).
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
212. Your Internet group window has more icons than your Accessories window.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---