Loading ...
Sorry, an error occurred while loading the content.

Re: Loading changed file from disk

Expand Messages
  • Mark Lawrence
    ... always thought :e required a filename argument. Thanks! -- Mark Lawrence www.unified-eng.com
    Message 1 of 5 , Nov 4, 2003
    • 0 Attachment
      On Tue, Nov 04, 2003 at 12:12:51PM -0500, Jing Xue wrote:
      > Quoting Keith Roberts <kroberts@...>:
      > > >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.

      :e! was the answer I was looking for, as I knew about :saveas. I had
      always thought :e required a filename argument. Thanks!

      --
      Mark Lawrence
      www.unified-eng.com
    Your message has been successfully submitted and would be delivered to recipients shortly.