Hi Tien,

You can use ':e[dit]' to reload the current file.  Perhaps you could set up
something with an autocommand based on the CursorHold event and reduce the
updatetime to half a second?  For example:

  set updatetime=500
  augroup RefreshFile
  autocmd!
  autocmd CursorHold somefile.log edit
  augroup end

However, this may not work so well if you have multiple files open in Vim.

regards,
Peter



--- Tien Pham <[EMAIL PROTECTED]> wrote:

> Hi all
> 
> Is there any key stroke to update content of a currently open file when its 
> content has been changed?
> 
> Reason for this is that I want to look at my log file from a simulation, as 
> I run simulation so frequently, it is so tedious to click "open" and 
> "select" the same file name to see the changes that a new simulation is 
> recorded in the log file. I would appreciate very much if someone teach me 
> a quick way to update content of the file I have opened, of course the same 
> file name.
> 
> Your help is greatly appreciated.
> Kind regards
> tien
> 
> 


Send instant messages to your online friends http://au.messenger.yahoo.com 

Reply via email to