Re: Loading changed file from disk
- On Tue, Nov 04, 2003 at 12:12:51PM -0500, Jing Xue wrote:
> Quoting Keith Roberts <kroberts@...>::e! was the answer I was looking for, as I knew about :saveas. I had
> > >Quoting Mark Lawrence <lawrence@...>:
> > >> is good if I want to overwrite, but what do I have to do to get vim to
> > >> read in the (changed) file from disk? In other words, what is the
> > >> non-GUI equivalent of hitting the "Load File" button in gvim's dialog
> > >> box?
> > >
> > >This reloads the file you are editing:
> > >
> > >:e!
> > I don't think this is the answer he is looking for [he didn't say he wanted
> > to *abandon* his own changes] ...
> Well he asked for the "non-GUI equivalent of hitting the 'Load File' button in
> gvim's dialog box" - which *would* abandon his own changes.
> Your solution, of course, works the best when one wants to merge.
always thought :e required a filename argument. Thanks!