Yakov Lerner wrote:
On 5/20/06, David Woodfall <[EMAIL PROTECTED]> wrote:
Just wondered if there is a way to reload a file. I sometimes edit files, save them, and then run a process that may change the file. I'd like to know if there
is a way to reload the changed file into vim from within.

:e

command will reload the file.

Yakov



If you are editing a file in Vim, and some other program changes the file, Vim will usually notice it and ask you if you want to reload the changed file. It is said that in version 7 you'll get no warning if the file's timestamp has changed but the actual contents haven't. You can set 'autoread' to automatically read the changed file, or define a FileChangedShell autocommand to replace the message query by something else.

See
   :help timestamp
   :help FileChangedShell
   :help 'autoread'


Best regards,
Tony.

Reply via email to