On 07/05/09 01:17, Mr.SpOOn wrote:
>
> Hi,
> is there any way to reload or refresh a file I'm currently working on?
>
> When I work on files on a server, it happens that I keep different of
> them opened in tabs. While I work on a file, a friend of mine is
> working on another (that I have opened there) and if he makes some
> changes, to see them I have to close and reopen the file. I'd like to
> just refresh it (as long as I didn't changed it, of course). Is there
> anything like this?
>
> Thanks.

- To reload unconditionally, from wherever it is, the file you're 
curretly editing:
        :e      " read-write if the file has read-write permissions
or
        :view   " always readonly

- To check whether any of the file(s) you're currently editing has been 
changed by someone else:
        :checkt[ime]

If a file or its datestamp have changed, then if 'autoread' is set and 
the file is not 'modified' in your instance of Vim, Vim will reload it 
without prompting. Otherwise, Vim will ask you what you want to do about 
the change.

See
        :help :edit
        :help :checktime
        :help 'autoread'


Best regards,
Tony.
-- 
The Briggs/Chase Law of Program Development:
        To determine how long it will take to write and debug a
program, take your best estimate, multiply that by two, add one, and
convert to the next higher units.

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

Reply via email to