> If I open the same file in two gvim sessions, and modify and write the
> file in one session, the other session will be notified. However, this
> is not true for vim. Is there a way to configure vim do the same thing?
>
See :help 'autoread'
Note that Vim doesn't know that "the other program" which modified the
file is another instance of Vim -- it could be anything. Also, this
won't work if Vim notices that a 'modified' file has also been modified
somewhere else: in this case you will have to decide which changes to trash.
Finer control (but also more occasions to shoot yourself in the foot) is
afforded by the FileChangedShell autocommand event.
Best regards,
Tony.
--
Bizoos, n.:
The millions of tiny individual bumps that make up a
basketball.
-- Rich Hall, "Sniglets"
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment