Tuesday, February 26, 2013

Re: How to refresh (reload) an opened file?

On Wednesday, February 27, 2013 7:53:00 AM UTC+13, andy richer wrote:

> Is there a way that I can do "refresh" or "reload" without quit the re-open the file to see updated contents?

The 'autoread' option does this. This works well in gvim because there is an implicit
:checktime
when gvim regains the input focus. See :help timestamp.

If you want a vim in a terminal to refresh, or gvim without getting the input focus, one can use the client-server stuff to tell vim to check if the file has changed. See :help client-server.

Regards, John Little

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: