On Tuesday, February 26, 2013 1:10:32 PM UTC-6, Tim Chase wrote:
> On 2013-02-26 10:53, Andy Richer wrote:
>
> > I opened a report file that is changed once I correct some code and
>
> > re-generate report.
>
> > Is there a way that I can do "refresh" or "reload" without quit the
>
> > re-open the file to see updated contents?
>
>
>
> Depends on what behavior you want, and whether you want to preserve
>
> any changes you made in the first version of the output. To re-read
>
> the file from disk, you can use
>
>
>
> :e
>
>
>
> (note: no filename) If you've made changes in the current buffer,
>
> you can abandon those with
>
>
>
> :e!
>
>
>
Note, this will destroy undo history, unless you have 'undofile' set, and 'undoreload' is a number larger than the number of lines in your file.
If 'undofile' and 'undoreload' are set properly, you can actually undo reading in the file if it abandoned your unsaved changes.
--
--
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.
Tuesday, February 26, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment